What Is System Call in Operating System
What Is System Call in Operating System
ANSWER
A system call is a mechanism that provides the interface between a process
and the operating system. It is a programmatic method in which a computer
program requests a service from the kernel of the OS.
ANSWER
Following are situations which need system calls in OS:
Process Control
File Management
Device Management
Information Maintenance
Communications
Process Control
This system calls perform the task of process creation, process termination,
etc.
Functions:
File Management
File management system calls handle file manipulation jobs like creating a file,
reading, and writing, etc.
Functions:
Create a file
Delete file
Open and close file
Device Management
Device management does the job of device manipulation like reading from
device buffers, writing into device buffers, etc.
Functions:
Request and release device
Logically attach/ detach devices
Get and Set device attributes
Information Maintenance
It handles information and its transfer between the OS and the user program.
Functions:
Communication:
These types of system calls are specially used for interprocess
communications.
Functions: