OS Theory Notes
OS Theory Notes
- Process Concept: A process is a program in execution. It includes the program code, current
activity (values in registers, program counter), and resources like files and memory.
- Process Control Block (PCB): Stores process ID, state, program counter, registers, memory limits,
I/O status.
- Context Switch: Saving and restoring process state when switching CPU.
- Objectives: Maximize CPU usage, throughput, minimize waiting time, turnaround time.
- CPU and I/O Burst Cycles: Alternate use of CPU and I/O.
- Scheduling Criteria: CPU utilization, throughput, turnaround time, waiting time, response time,
fairness.
4.3 Deadlock
- Necessary Conditions: Mutual Exclusion, Hold & Wait, No Preemption, Circular Wait.
Memory Management
5.1 Background
5.2 Swapping
File System
6.1 File Concepts