Unit1-What Is A System Call
Unit1-What Is A System Call
A system call is a method for a computer program to request a service from the kernel of the operating
system on which it is running. A system call is a method of interacting with the operating system via
programs. A system call is a request from computer software to an operating system's kernel.
The Application Program Interface (API) connects the operating system's functions to user programs.
It acts as a link between the operating system and a process, allowing user-level programs to request
operating system services. The kernel system can only be accessed using system calls. System calls are
required for any programs that use resources.
The interface between a process and an operating system is provided by system calls. In general, system
calls are available as assembly language instructions. They are also included in the manuals used by the
assembly level programmers.
System calls are usually made when a process in user mode requires access to a resource. Then it
requests the kernel to provide the resource via a system call.
Types of System Calls
There are mainly five types of system calls. These are explained in detail as follows −
Here are the types of system calls –
i. Process Control
These system calls deal with processes such as process creation, process termination etc.
ii. File Management
These system calls are responsible for file manipulation such as creating a file, reading a file, writing into
a file etc.
iii. Device Management
These system calls are responsible for device manipulation such as reading from device buffers, writing
into device buffers etc.
iv. Information Maintenance
These system calls handle information and its transfer between the operating system and the user
program.
v. Communication
These system calls are useful for interprocess communication. They also deal with creating and deleting
a communication connection.
Some of the examples of all the above types of system calls in Windows and Unix are given as follows −
Types of Windows Linux
System Calls