System Call Categories
What you'll learn: The five main families of system calls that let programs request services from the operating system.
Why Categories Matter
System calls are the interface between user programs and the OS kernel. Just as a restaurant menu groups dishes into appetizers, entrees, and desserts, system calls are organized into five major categories based on what they do. This organization helps programmers quickly find the right system call for their needs.
The Five Core Categories
1. Process Control
These system calls manage program execution: creating new processes, terminating them, waiting for completion, or changing their properties. Think of these as the "start, stop, and monitor" controls for programs.
2. File Management
Operations for creating, opening, reading, writing, closing, and deleting files. These are the "document handling" calls—everything you need to work with persistent data storage.
3. Device Management
System calls that request or release access to hardware devices (printers, disk drives, network cards). Imagine these as "check out/return" calls for physical resources, just like borrowing equipment from a shared pool.
4. Information Maintenance
Calls that retrieve or set system information: current time, system configuration, process statistics, or resource usage. These are your "status check" and "settings adjustment" operations.
5. Communication
System calls enabling processes to exchange data—either through message passing between processes or shared memory regions. Think of these as the "messaging and collaboration" tools.
Why This Organization Exists
Grouping system calls by purpose makes operating systems easier to learn, document, and implement. Each category addresses a distinct responsibility of the OS, reflecting the core services every modern operating system must provide.
Key Takeaway: System calls fall into five categories—process control, file management, device management, information maintenance, and communication—each handling a fundamental OS responsibility.