System Call (original) (raw)

Last Updated : 15 Dec, 2025

User programs cannot directly access hardware or critical OS resources because it would make the system unstable and insecure. To maintain safety, the operating system provides system calls — controlled interfaces that allow user programs to request services from the kernel. These calls act as a gateway between user mode and kernel mode. System Calls are,

introduction_to_system_call

System Call

Example:

How do System Calls Work?

A system call is a controlled entry point that allows a user program to request a service from the operating system. Here's how it works:

System calls do not always cause context switching. They primarily involve a **mode switch from user mode to kernel mode. A **context switch happens only when the calling process is blocked, not during every system call.

Types of System Calls

Services provided by an OS are typically related to any kind of operation that a user program can perform like creation, termination, forking, moving, communication, etc. Similar types of operations are grouped into one single system call category. System calls are classified into the following categories:

frame_11

Types of system call

Read more about - Different Types of System Calls in OS