Operating Systems: Processes, Threads, and System Calls
Classified in Computers
Written on in
English with a size of 31.86 KB
Chapter 1: System Fundamentals
Inter-process Communication (IPC):
- Network: Communication between processes over a network.
- Pipe (Special File): Process A writes into a pipe, and Process B reads from it.
Privileged vs. User Mode
The OS runs in privileged mode (also called supervisor or system mode), where specific operations—such as accessing a disk or network card—are permitted. User programs run in user mode and cannot perform these operations directly. When a program requires an OS service, such as accessing a file or creating a process, it is accomplished by a system call.
CPU Instruction Cycle
The CPU executes programs through a continuous loop:
- Fetch Instruction
- Decode and Execute
- Read/Write Data
- Loop until powered off
OS Invocation Methods
- System