Write down different system calls for performing different kinds of tasks.

 

Answer: - A system call is a request made by any program to the operating system for performing tasks – picked from a predefined set -- which the said program does not have required permissions to execute in its own flow of execution. A system calls provide the interface between a process and the operating system. Most operations interacting with the system require permissions not available to a user-level process, e.g. I/O performed with a device present on the system or any form of communication with other processes requires the use of system calls.

The main types of system calls are as follows:

·         Process Control: These types of system calls are used to control the processes. Some examples are ending, aborting, loading, executing, creating a process, terminating the process, etc.

·         File Management: These types of system calls are used to manage files. Some examples are Creating files, deleting files, opening, close, reading, writing, etc.

·         Device Management: These types of system calls are used to manage devices. Some examples are Request device, release device, read, write, get device attributes, etc. 

Post a Comment