OS Module 1 Part II SPP
OS Module 1 Part II SPP
by:
Dr. Soumya Priyadarsini Panda
Assistant Professor
Dept. of CSE
Silicon Institute of Technology, Bhubaneswar
Contents
System Components
System calls
Operating System Services
User Interface:
Almost all operating systems have a user interface (UI).
Examples:
Command-Line (CLI),
Graphics User Interface (GUI),
Batch
Cont…
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
Cont…
File System Manipulation:
Programs need to read and write files and directories, create and delete
them, search them, list file Information, permission management.
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
Cont…
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
Accounting:
To keep track of which users use how much and what kinds of computer
resources
Cont…
Protection and Security:
The owners of information stored in a multiuser or networked computer
system may want to control use of that information
Although all OS do not have the same structure, most of the operating
systems share similar system components like:
The user's program can't execute I/O operations directly. The operating
system provides some medium to perform this.
Three most common APIs are Win32 API for Windows, POSIX API
for POSIX-based systems and Java API for the Java virtual machine
(JVM)
Example of System Calls
System call sequence to copy the contents of one file to another file
API – System Call – OS Relationship
Cont….
Types of System Calls
Process control
File management
Device management
Information maintenance
Communications
Protection
Cont…
Process Control:
Create process, terminate process
end, abort
load, execute
get process attributes, set process attributes
wait for time
wait event, signal event
allocate and free memory
Cont….
File Management:
create file, delete file
open, close file
read, write, reposition
get and set file attributes
Device Management:
request device, release device
read, write, reposition
get device attributes, set device attributes
logically attach or detach devices
Cont….
Information Maintenance:
get time or date, set time or date
get system data, set system data
get and set process, file, or device attributes
Communications:
create, delete communication connection
send, receive messages
transfer status information
attach and detach remote devices
Cont…
Protection:
Control access to resources
Get and set permissions
Allow and deny user access
Examples of Windows and Unix
System Calls