System Calls
System Calls
A system call is a programmatic way in which a computer program requests a service from
the kernel of the operating system it is executed on. A system call is a way for programs
to interact with the operating system. A computer program makes a system call when it
requests the operating system’s kernel.
System call provides the services of the operating system to the user programs via the
Application Program Interface(API). It provides an interface between a process and an
operating system to allow user-level processes to request services of the operating system.
System calls are the only entry points into the kernel system. All programs needing
resources must use system calls.
A system call is a mechanism used by programs to request services from the operating
system (OS). A user program can interact with the operating system using a system call. A
number of services are requested by the program, and the OS responds by launching a
number of systems calls to fulfill the request. A system call can be written in high-level
languages like C or Pascal or in assembly language
A system call is initiated by the program executing a specific instruction, which triggers a
switch to kernel mode, allowing the program to request a service from the OS. The OS then
handles the request, performs the necessary operations, and returns the result back to the
program.
o Process Control: end, abort, create, terminate, allocate, and free memory.
o File Management: create, open, close, delete, read files, etc.
o Device Management
o Information Maintenance
o Communication