What is system call? Discuss process of handling system calls briefly.

This answer is restricted. Please login to view the answer of this question.

Login Now

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 sed 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 kernal to provide the resource via a system call. A figure representing the execution of the system call is given as follows:

Process of handling system call

As can be seen from this diagram, the process execute normally in the user mode until a system call interrupts this. Then  the system is executed on a priority basis in the kernal mode. After the execution of system call, the control returns to the user mode and execution of user processes can be resumed. In general, system calls are required in the following situations:

  • If a file system requires the creation or deletion of files. Reading and writing from files also require a system call.
  • Creation and management of new processes.
  • Network connections also require system calls. This include sending and receiving packets.
  • Access to a hardware device such as printer, scanner etc. requires a system call.
If you found any type of error on the answer then please mention on the comment or report an answer or submit your new answer.
Leave your Answer:

Click here to submit your answer.

  Loading . . .