What is system calls?



HOME

BACKGROUND

EXAMPLES ANG TOOLS

STEP IN A MAKING A SYSTEM CALLS





The mechanism used by an application program to request service from the operating system. System calls often use a special machine code instruction which causes the processor to change mode (e.g. to "supervisor mode" or "protected mode"). This allows the OS to perform restricted actions such as accessing hardware devices or the memory management unit.

System calls provide an interface to the services made available by an operating system.

These calls are generally available as routines written in C and C++, although certain low-level tasks (for example, tasks where hardware must be accessed directly), may need to be written using assembly-language instructions.