SlideShare a Scribd company logo
MODULE-1
Operating System Services
Department of CSE- Data Science
Contents
 User Operating System interface
 System calls
 Types of system calls
 System programs
 Operating system design and implementation
 Operating System structure
 Virtual machines
 Operating System debugging
 Operating System generation
 System boot.
Department of CSE- Data Science
Objectives
 To describe the services an operating system provides to users,
processes, and other systems
 To discuss the various ways of structuring an operating system
 To explain how operating systems are installed and customized and how
they boot
Department of CSE- Data Science
Operating System Services
 Operating systems provide an environment for execution of programs.
 It provides certain services to programs and to the users of those programs.
 These operating-system services are provided for the convenience of the
programmer, to make the programming task easier.
Department of CSE- Data Science
Department of CSE- Data Science
Fig. A view of operating system services
Department of CSE- Data Science
 One set of operating-system services provides functions that are helpful to the user:
• User interface - Almost all operating systems have a user interface (UI). Varies
between Command-Line (CLI), Graphics User Interface (GUI), Batch interface
(BI).
• Program execution - The system must be able to load a program into memory and
to run that program, end execution, either normally or abnormally (indicating error).
• I/O operations - A running program may require I/O, which may involve a file or
an I/O device.
• File-system manipulation - The file system is of particular interest. Programs need
to read and write files and directories, create and delete them, search them, list file
Information, permission management.
Department of CSE- Data Science
• Communications – Processes may exchange information, on the same
computer or between computers over a network
‣Communications may be via shared memory or through message passing
(packets moved by the OS)
• Error detection – OS needs to be constantly aware of possible errors
‣ May occur in the CPU and memory hardware, in I/O devices, in user
program
‣ For each type of error, OS should take the appropriate action to ensure
correct and consistent computing
‣ Debugging facilities can greatly enhance the user’s and programmer’s
abilities to efficiently use the system
Department of CSE- Data Science
 Another set of OS functions exists for ensuring the efficient operation of the
system itself via resource sharing
• Resource allocation - When multiple users or multiple jobs running
concurrently, resources must be allocated to each of them
‣ Many types of resources - Some (such as CPU cycles, main memory, and
file storage) may have special allocation code, others (such as I/O
devices) may have general request and release code
• Accounting - To keep track of which users use how much and what kinds of
computer resources
Department of CSE- Data Science
• Protection and security - The owners of information stored in a multiuser or
networked computer system may want to control use of that information,
concurrent processes should not interfere with each other
 Protection involves ensuring that all access to system resources is
controlled
 Security of the system from outsiders requires user authentication,
extends to defending external I/O devices from invalid access attempts
 If a system is to be protected and secure, precautions must be instituted
throughout it. A chain is only as strong as its weakest link
Department of CSE- Data Science
User Operating-System Interface
 There are several ways for users to interface with the operating system.
1. Command-line interface (CLI), or command interpreter, allows users to
directly enter commands to be performed by the operating system.
2. Graphical user interface (GUI), allows users to interface with the
operating system using pointer device and menu system.
Department of CSE- Data Science
Command-line interface (CLI)
 Command Interpreters are used to give commands to the OS. The main function of the command
interpreter is to get and execute the user-specified command. Many of the commands manipulate
files: create, delete, list, print, copy, execute, and so on.
 The commands can be implemented in two general ways-
1. The command interpreter itself contains the code to execute the command. For example, a
command to delete a file may cause the command interpreter to jump to a particular section
of its code that sets up the parameters and makes the appropriate system call.
2. The code to implement the command is in a function in a separate file. The interpreter
searches for the file and loads it into the memory and executes it by passing the parameter.
Thus by adding new functions new commands can be added easily to the interpreter without
disturbing it.
Department of CSE- Data Science
Department of CSE- Data Science
Graphical User Interfaces (GUI)
 GUI provides a mouse-based window-and-menu system as an interface.
 A GUI provides a desktop metaphor where the mouse is moved to position its
pointer on images, or icons, on the screen (the desktop) that represent programs,
files, directories, and system functions.
 Depending on the mouse pointer's location, clicking a button on the mouse can
invoke a program, select a file or directory—known as a folder— or pull down a
menu that contains commands.
Department of CSE- Data Science
 Many systems now include both CLI and GUI interfaces
‣ Microsoft Windows is GUI with CLI “command” shell
‣ Apple Mac OS X is “Aqua” GUI interface with UNIX kernel underneath
and shells available
‣ Unix and Linux have CLI with optional GUI interfaces (CDE, KDE,
GNOME)
Department of CSE- Data Science
System Calls
 System calls provides an interface to the services of the operating system.
 These are generally written in C or C++
 The figure illustrates the sequence of system calls required to copy a file
content from one file (input file) to another file (output file).
Department of CSE- Data Science
 An example to illustrate how system calls are used: writing a
simple program to read data from one file and copy them to another
file
‣ There are number of system calls used to finish this task. The
first system call is to write a message on the screen (monitor).
Then to accept the input filename. Then another system call to
write message on the screen, then to accept the output
filename.
‣ When the program tries to open the input file, it may find that
there is no file of that name or that the file is protected against
access. In these cases, the program should print a message on
the console (another system call) and then terminate
abnormally (another system call) and create a new one
(another system call).
‣ Now that both the files are opened, we enter a loop that reads
from the input file (another system call) and writes to output
file (another system call).
‣ Finally, after the entire file is copied, the program may close
both files (another system call), write a message to the
console or window (system call), and finally terminate
normally (final system call).
Department of CSE- Data Science
 Most programmers do not use the low-level system calls directly, but instead use an
"Application Programming Interface", API.
 Instead of direct system calls, APIs provides for greater program portability between
different systems. The API then makes the appropriate system calls through the system
call interface, using a system call table to access specific numbered system calls.
 Each system call has a specific numbered system call. The system call table (consisting
of system call number and address of the particular service) invokes a particular service
routine for a specific system call.
 The caller need know nothing about how the system call is implemented or what it
does during execution.
Department of CSE- Data Science
Fig. The handling of a user application invoking the open() system call
 Typically, a number associated with each system call .System-call interface maintains a
table indexed according to these numbers
 The system call interface invokes intended system call in OS kernel and returns status of the
system call and any return values
 The caller need know nothing about how the system call is implemented
Department of CSE- Data Science
 C program invoking printf() library call, which calls write() system call
Department of CSE- Data Science
System Calls - Parameter Passing
 Three general methods used to pass
parameters to OS are –
1. To pass parameters in registers.
2. If parameters are large blocks,
address of block (where parameters
are stored in memory) is sent to OS
in the register. (Linux & Solaris).
3. Parameters can be pushed onto the
stack by program and popped off the
stack by OS.
Department of CSE- Data Science
Types of System calls
 The system calls can be categorized into six major categories:
1. Process Control
2. File management
3. Device management
4. Information management
5. Communications
6. Protection
Department of CSE- Data Science
 Process control
‣ end, abort
‣ load, execute
‣ create process, terminate process
‣ get process attributes, set process attributes
‣ wait for time
‣ wait event, signal event
‣ allocate and free memory
 File management
‣ create file, delete file
‣ open, close file
‣ read, write, reposition
‣ get and set file attributes
Department of CSE- Data Science
 Device management
‣ request device, release device
‣ read, write, reposition
‣ get device attributes, set device attributes
‣ logically attach or detach devices
 Information maintenance
‣ get time or date, set time or date
‣ get system data, set system data
‣ get and set process, file, or device attributes
Department of CSE- Data Science
 Communications
‣ create, delete communication connection
‣ send, receive messages
‣ transfer status information
‣ attach and detach remote devices
Ad

More Related Content

Similar to MODULE-1_Operating System Services - ppt (20)

OS UNIT 1 PPT.pptx
OS UNIT 1 PPT.pptxOS UNIT 1 PPT.pptx
OS UNIT 1 PPT.pptx
PRABAVATHIH
 
osunit1ppt-23011904470yuoij4-685c22ef.pdf
osunit1ppt-23011904470yuoij4-685c22ef.pdfosunit1ppt-23011904470yuoij4-685c22ef.pdf
osunit1ppt-23011904470yuoij4-685c22ef.pdf
SuryaChandravelu
 
Operating System Module 1 Session 6.pptx
Operating System Module 1 Session 6.pptxOperating System Module 1 Session 6.pptx
Operating System Module 1 Session 6.pptx
yogeshneelappaatme
 
OS Services, System call, Virtual Machine
OS Services, System call, Virtual MachineOS Services, System call, Virtual Machine
OS Services, System call, Virtual Machine
Divya S
 
ch3 - operating system structures.ppt
ch3 - operating system structures.pptch3 - operating system structures.ppt
ch3 - operating system structures.ppt
divyang32
 
MELJUN CORTES operating_system_structure
MELJUN CORTES operating_system_structureMELJUN CORTES operating_system_structure
MELJUN CORTES operating_system_structure
MELJUN CORTES
 
chapter2.pptx
chapter2.pptxchapter2.pptx
chapter2.pptx
PardhisCreation
 
Ch3
Ch3Ch3
Ch3
Lokesh Kannaiyan
 
Ch3 OS
Ch3 OSCh3 OS
Ch3 OS
C.U
 
OSCh3
OSCh3OSCh3
OSCh3
Joe Christensen
 
OS_Ch3
OS_Ch3OS_Ch3
OS_Ch3
Supriya Shrivastava
 
Operating System
Operating SystemOperating System
Operating System
Subhasis Dash
 
Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]
Amit Gupta
 
Os lecture 6
Os lecture 6Os lecture 6
Os lecture 6
Dr. Ahmed J. Obaid
 
Operating systems system structures
Operating systems   system structuresOperating systems   system structures
Operating systems system structures
Mukesh Chinta
 
Introduction to System Calls
Introduction to System CallsIntroduction to System Calls
Introduction to System Calls
Vandana Salve
 
Os unit 1(cont)
Os unit 1(cont)Os unit 1(cont)
Os unit 1(cont)
E.M.G.yadava womens college
 
System calls in Linux environment for beginners
System calls in Linux environment for beginnersSystem calls in Linux environment for beginners
System calls in Linux environment for beginners
SadguruSai1
 
Operating Systems- Dr.G.Sumathi AI & DS, KNCET
Operating Systems- Dr.G.Sumathi AI & DS, KNCETOperating Systems- Dr.G.Sumathi AI & DS, KNCET
Operating Systems- Dr.G.Sumathi AI & DS, KNCET
sumathiganesan4
 
2. Operating System Structure,Services,Call, Design and Implementation.pptx
2. Operating System Structure,Services,Call, Design and Implementation.pptx2. Operating System Structure,Services,Call, Design and Implementation.pptx
2. Operating System Structure,Services,Call, Design and Implementation.pptx
viceprincipalbfc
 
OS UNIT 1 PPT.pptx
OS UNIT 1 PPT.pptxOS UNIT 1 PPT.pptx
OS UNIT 1 PPT.pptx
PRABAVATHIH
 
osunit1ppt-23011904470yuoij4-685c22ef.pdf
osunit1ppt-23011904470yuoij4-685c22ef.pdfosunit1ppt-23011904470yuoij4-685c22ef.pdf
osunit1ppt-23011904470yuoij4-685c22ef.pdf
SuryaChandravelu
 
Operating System Module 1 Session 6.pptx
Operating System Module 1 Session 6.pptxOperating System Module 1 Session 6.pptx
Operating System Module 1 Session 6.pptx
yogeshneelappaatme
 
OS Services, System call, Virtual Machine
OS Services, System call, Virtual MachineOS Services, System call, Virtual Machine
OS Services, System call, Virtual Machine
Divya S
 
ch3 - operating system structures.ppt
ch3 - operating system structures.pptch3 - operating system structures.ppt
ch3 - operating system structures.ppt
divyang32
 
MELJUN CORTES operating_system_structure
MELJUN CORTES operating_system_structureMELJUN CORTES operating_system_structure
MELJUN CORTES operating_system_structure
MELJUN CORTES
 
Ch3 OS
Ch3 OSCh3 OS
Ch3 OS
C.U
 
Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]
Amit Gupta
 
Operating systems system structures
Operating systems   system structuresOperating systems   system structures
Operating systems system structures
Mukesh Chinta
 
Introduction to System Calls
Introduction to System CallsIntroduction to System Calls
Introduction to System Calls
Vandana Salve
 
System calls in Linux environment for beginners
System calls in Linux environment for beginnersSystem calls in Linux environment for beginners
System calls in Linux environment for beginners
SadguruSai1
 
Operating Systems- Dr.G.Sumathi AI & DS, KNCET
Operating Systems- Dr.G.Sumathi AI & DS, KNCETOperating Systems- Dr.G.Sumathi AI & DS, KNCET
Operating Systems- Dr.G.Sumathi AI & DS, KNCET
sumathiganesan4
 
2. Operating System Structure,Services,Call, Design and Implementation.pptx
2. Operating System Structure,Services,Call, Design and Implementation.pptx2. Operating System Structure,Services,Call, Design and Implementation.pptx
2. Operating System Structure,Services,Call, Design and Implementation.pptx
viceprincipalbfc
 

More from ambikavenkatesh2 (19)

CN(BCS502) Module-4 _Transport Layer.pptx
CN(BCS502) Module-4 _Transport Layer.pptxCN(BCS502) Module-4 _Transport Layer.pptx
CN(BCS502) Module-4 _Transport Layer.pptx
ambikavenkatesh2
 
Module-3 Deadlocks.pptx BCS303 Operating system
Module-3 Deadlocks.pptx BCS303 Operating systemModule-3 Deadlocks.pptx BCS303 Operating system
Module-3 Deadlocks.pptx BCS303 Operating system
ambikavenkatesh2
 
V semester, computer networks BCS502 Module-2_DataLinkLayer
V semester, computer networks BCS502 Module-2_DataLinkLayerV semester, computer networks BCS502 Module-2_DataLinkLayer
V semester, computer networks BCS502 Module-2_DataLinkLayer
ambikavenkatesh2
 
Module-1_Introduction to Data Communications.pptx
Module-1_Introduction to Data Communications.pptxModule-1_Introduction to Data Communications.pptx
Module-1_Introduction to Data Communications.pptx
ambikavenkatesh2
 
computer networks lab program Bellman Ford.pptx
computer networks lab program Bellman Ford.pptxcomputer networks lab program Bellman Ford.pptx
computer networks lab program Bellman Ford.pptx
ambikavenkatesh2
 
Module-1.pptx Computer Networks BCS502 module-1 ppt
Module-1.pptx Computer Networks BCS502 module-1 pptModule-1.pptx Computer Networks BCS502 module-1 ppt
Module-1.pptx Computer Networks BCS502 module-1 ppt
ambikavenkatesh2
 
Module-1_Introduction to Data Communications.pptx
Module-1_Introduction to Data Communications.pptxModule-1_Introduction to Data Communications.pptx
Module-1_Introduction to Data Communications.pptx
ambikavenkatesh2
 
Concurrency Control in Databases.Database management systems
Concurrency Control in Databases.Database management systemsConcurrency Control in Databases.Database management systems
Concurrency Control in Databases.Database management systems
ambikavenkatesh2
 
Operating systems Lab program: to develop C program to implement process mana...
Operating systems Lab program: to develop C program to implement process mana...Operating systems Lab program: to develop C program to implement process mana...
Operating systems Lab program: to develop C program to implement process mana...
ambikavenkatesh2
 
Module1_Decision Support and Business Intelligence.pptx
Module1_Decision Support and Business Intelligence.pptxModule1_Decision Support and Business Intelligence.pptx
Module1_Decision Support and Business Intelligence.pptx
ambikavenkatesh2
 
Transactions and concurrency control mechanisms in database management system
Transactions and concurrency control mechanisms in  database management systemTransactions and concurrency control mechanisms in  database management system
Transactions and concurrency control mechanisms in database management system
ambikavenkatesh2
 
data base management system notes on concurrency control
data base management system notes on concurrency controldata base management system notes on concurrency control
data base management system notes on concurrency control
ambikavenkatesh2
 
Unit1_Fundamentals of Information Technlogy
Unit1_Fundamentals of Information TechnlogyUnit1_Fundamentals of Information Technlogy
Unit1_Fundamentals of Information Technlogy
ambikavenkatesh2
 
Module-1 Data base management systems chap1-Introduction to database.pptx
Module-1 Data base management systems chap1-Introduction to database.pptxModule-1 Data base management systems chap1-Introduction to database.pptx
Module-1 Data base management systems chap1-Introduction to database.pptx
ambikavenkatesh2
 
object oriented programming using java, second sem BCA,UoM
object oriented programming using java, second sem BCA,UoMobject oriented programming using java, second sem BCA,UoM
object oriented programming using java, second sem BCA,UoM
ambikavenkatesh2
 
data structures using C 2 sem BCA univeristy of mysore
data structures using C 2 sem BCA univeristy of mysoredata structures using C 2 sem BCA univeristy of mysore
data structures using C 2 sem BCA univeristy of mysore
ambikavenkatesh2
 
Tableau.pptx
Tableau.pptxTableau.pptx
Tableau.pptx
ambikavenkatesh2
 
ICT.pptx
ICT.pptxICT.pptx
ICT.pptx
ambikavenkatesh2
 
unit-1_Introduction to e-commerce.pptx
unit-1_Introduction to e-commerce.pptxunit-1_Introduction to e-commerce.pptx
unit-1_Introduction to e-commerce.pptx
ambikavenkatesh2
 
CN(BCS502) Module-4 _Transport Layer.pptx
CN(BCS502) Module-4 _Transport Layer.pptxCN(BCS502) Module-4 _Transport Layer.pptx
CN(BCS502) Module-4 _Transport Layer.pptx
ambikavenkatesh2
 
Module-3 Deadlocks.pptx BCS303 Operating system
Module-3 Deadlocks.pptx BCS303 Operating systemModule-3 Deadlocks.pptx BCS303 Operating system
Module-3 Deadlocks.pptx BCS303 Operating system
ambikavenkatesh2
 
V semester, computer networks BCS502 Module-2_DataLinkLayer
V semester, computer networks BCS502 Module-2_DataLinkLayerV semester, computer networks BCS502 Module-2_DataLinkLayer
V semester, computer networks BCS502 Module-2_DataLinkLayer
ambikavenkatesh2
 
Module-1_Introduction to Data Communications.pptx
Module-1_Introduction to Data Communications.pptxModule-1_Introduction to Data Communications.pptx
Module-1_Introduction to Data Communications.pptx
ambikavenkatesh2
 
computer networks lab program Bellman Ford.pptx
computer networks lab program Bellman Ford.pptxcomputer networks lab program Bellman Ford.pptx
computer networks lab program Bellman Ford.pptx
ambikavenkatesh2
 
Module-1.pptx Computer Networks BCS502 module-1 ppt
Module-1.pptx Computer Networks BCS502 module-1 pptModule-1.pptx Computer Networks BCS502 module-1 ppt
Module-1.pptx Computer Networks BCS502 module-1 ppt
ambikavenkatesh2
 
Module-1_Introduction to Data Communications.pptx
Module-1_Introduction to Data Communications.pptxModule-1_Introduction to Data Communications.pptx
Module-1_Introduction to Data Communications.pptx
ambikavenkatesh2
 
Concurrency Control in Databases.Database management systems
Concurrency Control in Databases.Database management systemsConcurrency Control in Databases.Database management systems
Concurrency Control in Databases.Database management systems
ambikavenkatesh2
 
Operating systems Lab program: to develop C program to implement process mana...
Operating systems Lab program: to develop C program to implement process mana...Operating systems Lab program: to develop C program to implement process mana...
Operating systems Lab program: to develop C program to implement process mana...
ambikavenkatesh2
 
Module1_Decision Support and Business Intelligence.pptx
Module1_Decision Support and Business Intelligence.pptxModule1_Decision Support and Business Intelligence.pptx
Module1_Decision Support and Business Intelligence.pptx
ambikavenkatesh2
 
Transactions and concurrency control mechanisms in database management system
Transactions and concurrency control mechanisms in  database management systemTransactions and concurrency control mechanisms in  database management system
Transactions and concurrency control mechanisms in database management system
ambikavenkatesh2
 
data base management system notes on concurrency control
data base management system notes on concurrency controldata base management system notes on concurrency control
data base management system notes on concurrency control
ambikavenkatesh2
 
Unit1_Fundamentals of Information Technlogy
Unit1_Fundamentals of Information TechnlogyUnit1_Fundamentals of Information Technlogy
Unit1_Fundamentals of Information Technlogy
ambikavenkatesh2
 
Module-1 Data base management systems chap1-Introduction to database.pptx
Module-1 Data base management systems chap1-Introduction to database.pptxModule-1 Data base management systems chap1-Introduction to database.pptx
Module-1 Data base management systems chap1-Introduction to database.pptx
ambikavenkatesh2
 
object oriented programming using java, second sem BCA,UoM
object oriented programming using java, second sem BCA,UoMobject oriented programming using java, second sem BCA,UoM
object oriented programming using java, second sem BCA,UoM
ambikavenkatesh2
 
data structures using C 2 sem BCA univeristy of mysore
data structures using C 2 sem BCA univeristy of mysoredata structures using C 2 sem BCA univeristy of mysore
data structures using C 2 sem BCA univeristy of mysore
ambikavenkatesh2
 
unit-1_Introduction to e-commerce.pptx
unit-1_Introduction to e-commerce.pptxunit-1_Introduction to e-commerce.pptx
unit-1_Introduction to e-commerce.pptx
ambikavenkatesh2
 
Ad

Recently uploaded (20)

How to Share Accounts Between Companies in Odoo 18
How to Share Accounts Between Companies in Odoo 18How to Share Accounts Between Companies in Odoo 18
How to Share Accounts Between Companies in Odoo 18
Celine George
 
How to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 PurchaseHow to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 Purchase
Celine George
 
2025 The Senior Landscape and SET plan preparations.pptx
2025 The Senior Landscape and SET plan preparations.pptx2025 The Senior Landscape and SET plan preparations.pptx
2025 The Senior Landscape and SET plan preparations.pptx
mansk2
 
Cultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptxCultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptx
UmeshTimilsina1
 
spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)
Mohamed Rizk Khodair
 
Myopathies (muscle disorders) for undergraduate
Myopathies (muscle disorders) for undergraduateMyopathies (muscle disorders) for undergraduate
Myopathies (muscle disorders) for undergraduate
Mohamed Rizk Khodair
 
How to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo SlidesHow to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo Slides
Celine George
 
Botany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic ExcellenceBotany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic Excellence
online college homework help
 
Ajanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of HistoryAjanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of History
Virag Sontakke
 
The role of wall art in interior designing
The role of wall art in interior designingThe role of wall art in interior designing
The role of wall art in interior designing
meghaark2110
 
How to Configure Public Holidays & Mandatory Days in Odoo 18
How to Configure Public Holidays & Mandatory Days in Odoo 18How to Configure Public Holidays & Mandatory Days in Odoo 18
How to Configure Public Holidays & Mandatory Days in Odoo 18
Celine George
 
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Leonel Morgado
 
Cultivation Practice of Turmeric in Nepal.pptx
Cultivation Practice of Turmeric in Nepal.pptxCultivation Practice of Turmeric in Nepal.pptx
Cultivation Practice of Turmeric in Nepal.pptx
UmeshTimilsina1
 
Pope Leo XIV, the first Pope from North America.pptx
Pope Leo XIV, the first Pope from North America.pptxPope Leo XIV, the first Pope from North America.pptx
Pope Leo XIV, the first Pope from North America.pptx
Martin M Flynn
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
Nguyen Thanh Tu Collection
 
Search Matching Applicants in Odoo 18 - Odoo Slides
Search Matching Applicants in Odoo 18 - Odoo SlidesSearch Matching Applicants in Odoo 18 - Odoo Slides
Search Matching Applicants in Odoo 18 - Odoo Slides
Celine George
 
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and GuestsLDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDM Mia eStudios
 
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
parmarjuli1412
 
Origin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theoriesOrigin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theories
PrachiSontakke5
 
How to Share Accounts Between Companies in Odoo 18
How to Share Accounts Between Companies in Odoo 18How to Share Accounts Between Companies in Odoo 18
How to Share Accounts Between Companies in Odoo 18
Celine George
 
How to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 PurchaseHow to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 Purchase
Celine George
 
2025 The Senior Landscape and SET plan preparations.pptx
2025 The Senior Landscape and SET plan preparations.pptx2025 The Senior Landscape and SET plan preparations.pptx
2025 The Senior Landscape and SET plan preparations.pptx
mansk2
 
Cultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptxCultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptx
UmeshTimilsina1
 
spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)
Mohamed Rizk Khodair
 
Myopathies (muscle disorders) for undergraduate
Myopathies (muscle disorders) for undergraduateMyopathies (muscle disorders) for undergraduate
Myopathies (muscle disorders) for undergraduate
Mohamed Rizk Khodair
 
How to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo SlidesHow to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo Slides
Celine George
 
Botany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic ExcellenceBotany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic Excellence
online college homework help
 
Ajanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of HistoryAjanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of History
Virag Sontakke
 
The role of wall art in interior designing
The role of wall art in interior designingThe role of wall art in interior designing
The role of wall art in interior designing
meghaark2110
 
How to Configure Public Holidays & Mandatory Days in Odoo 18
How to Configure Public Holidays & Mandatory Days in Odoo 18How to Configure Public Holidays & Mandatory Days in Odoo 18
How to Configure Public Holidays & Mandatory Days in Odoo 18
Celine George
 
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Leonel Morgado
 
Cultivation Practice of Turmeric in Nepal.pptx
Cultivation Practice of Turmeric in Nepal.pptxCultivation Practice of Turmeric in Nepal.pptx
Cultivation Practice of Turmeric in Nepal.pptx
UmeshTimilsina1
 
Pope Leo XIV, the first Pope from North America.pptx
Pope Leo XIV, the first Pope from North America.pptxPope Leo XIV, the first Pope from North America.pptx
Pope Leo XIV, the first Pope from North America.pptx
Martin M Flynn
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
Nguyen Thanh Tu Collection
 
Search Matching Applicants in Odoo 18 - Odoo Slides
Search Matching Applicants in Odoo 18 - Odoo SlidesSearch Matching Applicants in Odoo 18 - Odoo Slides
Search Matching Applicants in Odoo 18 - Odoo Slides
Celine George
 
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and GuestsLDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDM Mia eStudios
 
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
parmarjuli1412
 
Origin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theoriesOrigin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theories
PrachiSontakke5
 
Ad

MODULE-1_Operating System Services - ppt

  • 2. Contents  User Operating System interface  System calls  Types of system calls  System programs  Operating system design and implementation  Operating System structure  Virtual machines  Operating System debugging  Operating System generation  System boot. Department of CSE- Data Science
  • 3. Objectives  To describe the services an operating system provides to users, processes, and other systems  To discuss the various ways of structuring an operating system  To explain how operating systems are installed and customized and how they boot Department of CSE- Data Science
  • 4. Operating System Services  Operating systems provide an environment for execution of programs.  It provides certain services to programs and to the users of those programs.  These operating-system services are provided for the convenience of the programmer, to make the programming task easier. Department of CSE- Data Science
  • 5. Department of CSE- Data Science Fig. A view of operating system services
  • 6. Department of CSE- Data Science  One set of operating-system services provides functions that are helpful to the user: • User interface - Almost all operating systems have a user interface (UI). Varies between Command-Line (CLI), Graphics User Interface (GUI), Batch interface (BI). • Program execution - The system must be able to load a program into memory and to run that program, end execution, either normally or abnormally (indicating error). • I/O operations - A running program may require I/O, which may involve a file or an I/O device. • File-system manipulation - The file system is of particular interest. Programs need to read and write files and directories, create and delete them, search them, list file Information, permission management.
  • 7. Department of CSE- Data Science • Communications – Processes may exchange information, on the same computer or between computers over a network ‣Communications may be via shared memory or through message passing (packets moved by the OS) • Error detection – OS needs to be constantly aware of possible errors ‣ May occur in the CPU and memory hardware, in I/O devices, in user program ‣ For each type of error, OS should take the appropriate action to ensure correct and consistent computing ‣ Debugging facilities can greatly enhance the user’s and programmer’s abilities to efficiently use the system
  • 8. Department of CSE- Data Science  Another set of OS functions exists for ensuring the efficient operation of the system itself via resource sharing • Resource allocation - When multiple users or multiple jobs running concurrently, resources must be allocated to each of them ‣ Many types of resources - Some (such as CPU cycles, main memory, and file storage) may have special allocation code, others (such as I/O devices) may have general request and release code • Accounting - To keep track of which users use how much and what kinds of computer resources
  • 9. Department of CSE- Data Science • Protection and security - The owners of information stored in a multiuser or networked computer system may want to control use of that information, concurrent processes should not interfere with each other  Protection involves ensuring that all access to system resources is controlled  Security of the system from outsiders requires user authentication, extends to defending external I/O devices from invalid access attempts  If a system is to be protected and secure, precautions must be instituted throughout it. A chain is only as strong as its weakest link
  • 10. Department of CSE- Data Science User Operating-System Interface  There are several ways for users to interface with the operating system. 1. Command-line interface (CLI), or command interpreter, allows users to directly enter commands to be performed by the operating system. 2. Graphical user interface (GUI), allows users to interface with the operating system using pointer device and menu system.
  • 11. Department of CSE- Data Science Command-line interface (CLI)  Command Interpreters are used to give commands to the OS. The main function of the command interpreter is to get and execute the user-specified command. Many of the commands manipulate files: create, delete, list, print, copy, execute, and so on.  The commands can be implemented in two general ways- 1. The command interpreter itself contains the code to execute the command. For example, a command to delete a file may cause the command interpreter to jump to a particular section of its code that sets up the parameters and makes the appropriate system call. 2. The code to implement the command is in a function in a separate file. The interpreter searches for the file and loads it into the memory and executes it by passing the parameter. Thus by adding new functions new commands can be added easily to the interpreter without disturbing it.
  • 12. Department of CSE- Data Science
  • 13. Department of CSE- Data Science Graphical User Interfaces (GUI)  GUI provides a mouse-based window-and-menu system as an interface.  A GUI provides a desktop metaphor where the mouse is moved to position its pointer on images, or icons, on the screen (the desktop) that represent programs, files, directories, and system functions.  Depending on the mouse pointer's location, clicking a button on the mouse can invoke a program, select a file or directory—known as a folder— or pull down a menu that contains commands.
  • 14. Department of CSE- Data Science  Many systems now include both CLI and GUI interfaces ‣ Microsoft Windows is GUI with CLI “command” shell ‣ Apple Mac OS X is “Aqua” GUI interface with UNIX kernel underneath and shells available ‣ Unix and Linux have CLI with optional GUI interfaces (CDE, KDE, GNOME)
  • 15. Department of CSE- Data Science System Calls  System calls provides an interface to the services of the operating system.  These are generally written in C or C++  The figure illustrates the sequence of system calls required to copy a file content from one file (input file) to another file (output file).
  • 16. Department of CSE- Data Science  An example to illustrate how system calls are used: writing a simple program to read data from one file and copy them to another file ‣ There are number of system calls used to finish this task. The first system call is to write a message on the screen (monitor). Then to accept the input filename. Then another system call to write message on the screen, then to accept the output filename. ‣ When the program tries to open the input file, it may find that there is no file of that name or that the file is protected against access. In these cases, the program should print a message on the console (another system call) and then terminate abnormally (another system call) and create a new one (another system call). ‣ Now that both the files are opened, we enter a loop that reads from the input file (another system call) and writes to output file (another system call). ‣ Finally, after the entire file is copied, the program may close both files (another system call), write a message to the console or window (system call), and finally terminate normally (final system call).
  • 17. Department of CSE- Data Science  Most programmers do not use the low-level system calls directly, but instead use an "Application Programming Interface", API.  Instead of direct system calls, APIs provides for greater program portability between different systems. The API then makes the appropriate system calls through the system call interface, using a system call table to access specific numbered system calls.  Each system call has a specific numbered system call. The system call table (consisting of system call number and address of the particular service) invokes a particular service routine for a specific system call.  The caller need know nothing about how the system call is implemented or what it does during execution.
  • 18. Department of CSE- Data Science Fig. The handling of a user application invoking the open() system call  Typically, a number associated with each system call .System-call interface maintains a table indexed according to these numbers  The system call interface invokes intended system call in OS kernel and returns status of the system call and any return values  The caller need know nothing about how the system call is implemented
  • 19. Department of CSE- Data Science  C program invoking printf() library call, which calls write() system call
  • 20. Department of CSE- Data Science System Calls - Parameter Passing  Three general methods used to pass parameters to OS are – 1. To pass parameters in registers. 2. If parameters are large blocks, address of block (where parameters are stored in memory) is sent to OS in the register. (Linux & Solaris). 3. Parameters can be pushed onto the stack by program and popped off the stack by OS.
  • 21. Department of CSE- Data Science Types of System calls  The system calls can be categorized into six major categories: 1. Process Control 2. File management 3. Device management 4. Information management 5. Communications 6. Protection
  • 22. Department of CSE- Data Science  Process control ‣ end, abort ‣ load, execute ‣ create process, terminate process ‣ get process attributes, set process attributes ‣ wait for time ‣ wait event, signal event ‣ allocate and free memory  File management ‣ create file, delete file ‣ open, close file ‣ read, write, reposition ‣ get and set file attributes
  • 23. Department of CSE- Data Science  Device management ‣ request device, release device ‣ read, write, reposition ‣ get device attributes, set device attributes ‣ logically attach or detach devices  Information maintenance ‣ get time or date, set time or date ‣ get system data, set system data ‣ get and set process, file, or device attributes
  • 24. Department of CSE- Data Science  Communications ‣ create, delete communication connection ‣ send, receive messages ‣ transfer status information ‣ attach and detach remote devices
  翻译: