Operating Systems: System Calls, Processes, and Forking
Classified in Computers
Written on in
with a size of 2.83 KB
Operating Systems: System Calls and File Descriptors
| OS vs. User Mode | Read vs. Write Operations | Special File Descriptors |
|---|---|---|
System Calls and Kernel ModePublic functions provided by the OS.
| Handling Data Streams
Note: Always loop writes as the OS may not write all data at once. | Standard Descriptors
|
Multiprocessing and Process Management
| Concepts | PID and Forking | Shell Logic |
|---|---|---|
Programs vs. Processes
Single-core: Switches between tasks rapidly. | The Fork MechanismThe OS assigns each process a unique PID (
| Shell ExecutionA shell prompts for commands, waits for completion, and repeats. It maintains linear execution flow between parent and child. |
Process ClonesVirtual addresses remain identical, but physical addresses differ. Systems use Copy-on-Write to share memory until a modification occurs. |