Unit II OSY Handout Revised 01.08.2023
Unit II OSY Handout Revised 01.08.2023
Course Outcomes:-
CO Course Outcome (CO) Statements PO addressed
C22516.b Use operating system tools to perform various function
1,2,3,4,5,6,7
This call controls the requests from the process for the several resources (devices) of
the system.
It controls the read, writes operations on the devices.
It provides the resources to process for execution and even releases the devices after
completion of the process.
d. Information maintenance
The information maintenance system call maintains the information of the computer such as
system time, date, etc.
These calls are used to get the system information such as the version of the operation
system, configuration of the system.
To get the information about all the processes of the operating system.
To get information about all the files on the system.
To get information about all the devices attached to the system.
e. Communications
A communication call is required to connect your computer over the network.
It creates and deletes the communication connection over the network.
This call is even required to send and receive messages over the network.
Transfer status information of the connected devices over the network.
This call is even required to attach or detach the remote devices connected to your
computer over the network.
Examples of Windows and Unix System Calls –
Windows Unix
CreateProcess() fork()
Process Control ExitProcess() exit()
WaitForSingleObject() wait()
CreateFile() open()
ReadFile() read()
File Manipulation
WriteFile() write()
CloseHandle() close()
SetConsoleMode() ioctl()
Device Manipulation ReadConsole() read()
WriteConsole() write()
GetCurrentProcessID() getpid()
Information Maintenance SetTimer() alarm()
Sleep() sleep()
CreatePipe() pipe()
Communication CreateFileMapping() shmget()
MapViewOfFile() mmap()
SetFileSecurity() chmod()
Protection InitlializeSecurityDescriptor() umask()
SetSecurityDescriptorGroup() chown()