Recent Notes

  • Visionary GenAI

    Mar 14, 2025

    • Industry and Competitive Analysis

      Mar 11, 2025

      Home

      ❯

      Literature

      ❯

      Operating Systems

      ❯

      System Calls for Processes

      System Calls for Processes

      Sep 12, 20231 min read

      We can use system calls to view, create and modify the system processes

      System calls provide the interface between a process and the OS. These calls are generally available as assembly language instructions. The system call interface layer contains entry point in the kernel code; because all system resources are managed by the kernel any user or application request that involves access to any system resource must be handled by the kernel code, but user process must not be given open access to the kernel code for security reasons. So that user processes can invoke the execution of kernel code, several openings into the kernel code, also called system calls, are provided. System calls

      How do System Calls Work?
      ​​

      System calls can be divided into six major categories: (1) process control,(2) file management, (3) device management, (4) information maintenance,(5) communications, and (6) protection.

      Pictorial view of the steps needed for execution of a system call
      ​​

      The kernel uses call number to index a kernel table (the dispatch table) which contains pointers to service routines for all system calls

      Fork

      Exec


      Graph View

      • Fork
      • Exec

      Created with <3
      Copyright © 2025 avcton

      • Linkedin