Unit 1: Processes, Threads & System Calls
Process concept: Process Control Block (PCB) fields including Program Counter, CPU registers, memory limits, and list of open files. Process state transitions: New, Ready, Running, Waiting, Terminated. Context switching overhead. Threads: User-level threads vs. Kernel-level threads, multithreading models (Many-to-One, One-to-One, Many-to-Many). Inter-Process Communication (IPC): Shared memory architecture vs. Message passing systems (Direct/Indirect, Synchronous/Asynchronous). System calls for process control (fork(), exec(), wait(), exit()).
Unit 2: CPU Scheduling Algorithms
Scheduling criteria: CPU Utilization, Throughput, Turnaround Time (TAT = Completion Time - Arrival Time), Waiting Time (WT = TAT - Burst Time), Response Time. Algorithms: First-Come, First-Served (FCFS) and convoy effect; Shortest Job First (SJF) non-preemptive vs. Shortest Remaining Time First (SRTF) preemptive with optimal waiting time; Priority Scheduling and priority inversion (solved via Priority Inheritance); Round Robin (RR) with time quantum selection tradeoffs. Multilevel Queue and Multilevel Feedback Queue scheduling.
Unit 3: Main Memory & Virtual Memory Management
Contiguous memory allocation: Fixed vs. Variable partitioning, First Fit, Best Fit, Worst Fit; internal vs. external fragmentation and compaction. Paging: Logical to physical address translation, Page Table Base Register (PTBR), Translation Lookaside Buffer (TLB). Effective Access Time: $EAT = h \cdot (t + m) + (1 - h) \cdot (t + 2m)$. Virtual Memory: Demand paging, page fault handling service routine. Page replacement algorithms: FIFO and Belady's Anomaly; Optimal (OPT); Least Recently Used (LRU) via stack and counter implementations; Working Set model and Thrashing mitigation.
Unit 4: File Systems & Disk Scheduling
File system structure, directory implementations (Single-level, Two-level, Tree-structured, Acyclic graph). File allocation methods: Contiguous allocation (fast access, external fragmentation), Linked allocation (no external fragmentation, slow random access), Indexed allocation (inode structure with direct, single-indirect, double-indirect blocks). Disk scheduling algorithms: FCFS, Shortest Seek Time First (SSTF), SCAN (Elevator), C-SCAN (Circular SCAN), LOOK, and C-LOOK. RAID levels (0, 1, 5, 6, 10) comparing striping, mirroring, and parity.
Unit 5: Process Synchronization & Deadlocks
Critical Section Problem: Mutual Exclusion, Progress, Bounded Waiting. Peterson's Algorithm software solution. Hardware atomic instructions: TestAndSet, CompareAndSwap. Semaphores: Counting and Binary (Mutex), wait() / P() and signal() / V() primitives. Classical problems: Producer-Consumer (bounded buffer), Readers-Writers, Dining Philosophers. Deadlocks: 4 Coffman Conditions (Mutual Exclusion, Hold and Wait, No Preemption, Circular Wait). Resource Allocation Graph (RAG) cycle detection. Banker's Algorithm for deadlock avoidance: Safety Algorithm ($Work = Available, Finish[i] = false$) and Resource-Request Algorithm testing ($Request_i \le Need_i$ and $Request_i \le Available$).
📚 Full Course Outline — Operating Systems
Complete topic index for all units. Use the interactive guide above for detailed notes and MCQs.
Unit 1: Processes & Threads — Exam Frequency: High
Covers OS fundamentals: what an OS is, system calls, process states, PCB, context switching, threads, inter-process communication, and kernel architectures.
- 1.1 What is an Operating System?
- 1.2 Process States & PCB
- 1.3 Context Switching & System Calls
- 1.4 Threads (User vs Kernel Level)
- 1.5 Interprocess Communication (IPC)
Unit 2: CPU Scheduling & Sync — Exam Frequency: Highest
Focuses on algorithms for CPU allocation, process synchronization, and classical concurrency problems.
- 2.1 Scheduling Criteria
- 2.2 Scheduling Algorithms
- 2.3 Process Synchronization & Mutex
- 2.4 Semaphores & Monitors
- 2.5 Classical Synchronization Problems
Unit 3: Memory Management — Exam Frequency: High
Physical vs logical memory, paging, segmentation, virtual memory, and page replacement strategies.
- 3.1 Logical vs Physical Address
- 3.2 Paging & TLB
- 3.3 Segmentation
- 3.4 Virtual Memory & Demand Paging
- 3.5 Page Replacement & Thrashing
Unit 4: File & Disk Systems — Exam Frequency: Medium
File organization, directory structures, allocation methods, and disk scheduling algorithms.
- 4.1 File Allocation Methods
- 4.2 Directory Structures
- 4.3 Disk Scheduling Algorithms
- 4.4 RAID Structure
Unit 5: Deadlock & I/O — Exam Frequency: Highest
Core curriculum for Unit 5.
- 5.1 Deadlock Characteristics
- 5.2 Deadlock Prevention vs Avoidance
- 5.4 Deadlock Detection & Recovery
- 5.5 I/O Hardware & Principles