System Calls

All backend operations are to be executed or triggered through the system call. It’s basically an API that helps us communicate with the the backend operations Different operating systems have their own System Call API structures

Methods to Pass Parameters to System Calls

  • Pass through a register
    • Drawback: Limited number of register, how to pass more parameters?
  • Store in a block of memory
    • This approach is used by linux and solaris
  • Push the parameters into the stack

Context Switching

Switching from User Mode to Kernel Mode or Vice Versa

Mode Bit

Decides what mode will the operating system will be utilising

BitContext
0Kernel Mode
1User Mode

User Mode

User processes are executed here

Kernel Mode

Authorised access is needed here All system calls are to be executed in Kernel mode

The dual-mode operation of the CPU