Introduction of System Call

Last Updated :

To understand system calls, first one needs to understand the difference between kernel mode and user mode of a CPU. Every modern operating system supports these two modes.

In computing, a system call is the 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. When a program makes a system call, the mode is switched from user mode to kernel mode. This is called a context switch.

Services Provided by System Calls :

  • Process creation and management
  • Main memory management
  • File Access, Directory and File system management
  • Device handling(I/O)
  • Protection
  • Networking, etc.

Following are situations which need system calls in Operating System (OS) :

  • Reading and writing from files demand system calls.
  • If a file system wants to create or delete files, system calls are required.
  • System calls are used for the creation and management of new processes.
  • Network connections need system calls for sending and receiving packets.
  • Access to hardware devices like scanner, printer, need a system call.



Please write comments if you find anything incorrect. A gentle request to share this topic on your social media profile.

Comment
Next Article
CPP_Programmer Published 16 Sep, 2020 · 2 min read

Similar Reads

  • Software concepts of Computer

    Before starting the software concepts, let us take a brief look into the components of computer. Components of Computer: A computer system has 3 components namely: Hardware, Software,…

    3 min read
  • Difference between Full Virtualization and Para-virtualization

    Process of abstracting underlying hardware components from software is the primary concept behind virtualization. 1. Full Virtualization In full virtualization, a single host operating system allows the execution…

    2 min read
  • Storage Structure memory

    Storage structure consists of registers, main memory, and magnetic disk is only one of many possible storage systems. There are also cache CD ROM, magnetic takes, and so…

    3 min read
  • What is Software and its Types ?

    Software is nothing but a program or collection of programs that perform a specific task. Software is a bridge between user and computer hardware. Softwares directs the peripheral…

    1 min read
  • Searching in parent and printing result in child processes using fork()

    In C/C++, the fork() function is used to generate a new process known as the child process. We can do searching within a fork() process. Problem statement –…

    3 min read
  • Multilevel Paging in Operating System

    A page table is a data structure used by virtual memory system in a computer operating system to store the mapping between the virtual addresses and physical addresses.…

    4 min read