System call

An application running in user mode makes a system call to the OS when it needs to access hardware. The OS then runs the associated call in kernel mode to effect the hardware. This is normally costly for the application as it has to give over control to the kernel.

Some example system calls are:

  • Open (file),
  • Send (socket), or
  • mmap (memory).