∑GateAndNet
PlannerSign Up
⚙️GATE CSWeightage: 8–10 Marks5 Study Chapters14 Solved PYQs

Operating Systems

Processes, CPU scheduling, synchronization semaphores, deadlocks, virtual memory, paging & disk I/O.

Practice Unit PYQs (14)All GATE CS Units
Official Syllabus Micro-Topics
System Calls, Processes, PCB, Context Switching, User vs Kernel Threads & fork() Process TreesCPU Scheduling: FCFS, SJF, SRTF, Priority, Round Robin & Multilevel Feedback QueuesInter-Process Communication & Synchronization: Race Conditions, Critical Section, Peterson’s Solution, Mutex & SemaphoresClassical Sync Problems: Producer-Consumer, Readers-Writers & Dining PhilosophersDeadlocks: Necessary Conditions, Resource Allocation Graph, Banker’s Safety Algorithm, Prevention & RecoveryMemory Management: Contiguous Allocation, Internal/External Fragmentation, Paging, Multi-Level Page Tables & TLB EMATVirtual Memory: Demand Paging, Page Faults, FIFO (Belady’s Anomaly), Optimal & LRU Page Replacement, ThrashingFile Systems (i-nodes, FAT) & Disk Scheduling (FCFS, SSTF, SCAN, C-SCAN, LOOK, C-LOOK)

Published Study Notes & Chapters (5)

Ch 1 High Yield 4 min read 6 PYQs

CPU Scheduling, Semaphores & Deadlock Banker’s Formula

TAT/WT numericals, counting semaphore wait/signal invariants, and minimum/maximum resource deadlock formulas.

Read Chapter
Ch 2 High Yield 4 min read 2 PYQs

Virtual Memory, Multi-Level Paging & TLB Effective Access Time

Virtual/physical address bit calculations, optimal page size for multi-level page tables, EMAT, and Belady’s anomaly.

Read Chapter
Ch 3 High Yield 4 min read 3 PYQs

Page Replacement (FIFO, LRU, Optimal), Unix Inodes & Disk Arm Scheduling

FIFO Belady’s anomaly vs stack algorithms (LRU/Optimal), Unix inode maximum file size formula, and FCFS / SSTF / SCAN / C-SCAN / C-LOOK disk head movement numericals.

Read Chapter
Ch 4 High Yield 4 min read 1 PYQs

Page Replacement Logics (Animated): Belady’s Anomaly in FIFO vs LRU & Optimal Stack Property

Interactive frame-by-frame proof of Belady’s Anomaly (9 faults with 3 frames vs 10 faults with 4 frames under FIFO!), Mattson’s Stack Inclusion Property, Second-Chance Clock, and Working-Set Thrashing.

Read Chapter
Ch 5 High Yield 4 min read 2 PYQs

OS 2027 Rank-Decider: Hardware CAS/TestAndSet, Priority Inversion, Copy-on-Write & File I/O

Why naive TestAndSet/CAS spinlocks violate Bounded Waiting, Priority Inversion & Priority Inheritance, Copy-on-Write (COW) fork() page sharing, and Contiguous vs Linked vs FAT vs Indexed disk block seeks.

Read Chapter

Solved Operating Systems PYQs & Practice Questions

Launch Timed Mock (14 Qs)
Q1GATE CS 2016Operating SystemsMCQMEDIUM
+2M • -0.67

Consider Peterson’s two-process software synchronization solution using shared flag[0..1] and turn. Which of the three Critical Section requirements (Mutual Exclusion, Progress, Bounded Waiting) does it satisfy on a sequentially consistent processor?

⚡ Click an option above to verify instantly
Q2GATE CS 2024 Set-1Operating SystemsNATMEDIUM
+2M • 0 Neg

Four processes P1,P2,P3,P4P_1, P_2, P_3, P_4 arrive at times 0,1,2,40, 1, 2, 4 with CPU burst times 5,3,3,15, 3, 3, 1 respectively. Under SRTF (Shortest Remaining Time First) preemptive scheduling, what is the average turnaround time?

Q3UGC NET / GATE OSOperating SystemsMCQMEDIUM
+2M • -0.67

A system has 33 processes, each requiring at most 44 identical units of resource RR. What is the minimum number of units of RR that guarantees the system is always deadlock-free?

⚡ Click an option above to verify instantly
Q4GATE CS OSOperating SystemsMCQMEDIUM
+2M • -0.67

A counting semaphore SS is initialized to 1010. Subsequently, 66 wait(P) operations and 44 signal(V) operations are completed on SS. What is the current value of SS?

⚡ Click an option above to verify instantly
Q5GATE CS OSOperating SystemsMCQMEDIUM
+2M • -0.67

A C program executes fork(); fork(); fork(); sequentially without any conditional branching. Including the initial parent process, how many child processes are newly created?

⚡ Click an option above to verify instantly
Q6GATE CS OS NATOperating SystemsNATEASY
+2M • 0 Neg

A system has 55 processes, and each process requires a maximum of 44 instances of resource RR to complete execution. What is the minimum number of instances of RR that guarantees the system will NEVER enter deadlock?

Q7GATE CS 2023Operating SystemsNATMEDIUM
+2M • 0 Neg

A system uses a 2-level hierarchical page table with a TLB. TLB access takes 10 ns10\text{ ns}, main memory access takes 100 ns100\text{ ns}, and the TLB hit ratio is 90%90\%. Assuming zero page faults, what is the Effective Memory Access Time (EMAT) in nanoseconds?

Q8GATE CS OS TLBOperating SystemsNATMEDIUM
+2M • 0 Neg

A paging system uses a single-level page table in main memory (100 ns100\text{ ns} access time) and a TLB (20 ns20\text{ ns} lookup time) with a TLB hit ratio of 80%80\%. Assuming sequential TLB-then-memory lookup, what is the Effective Memory Access Time (EMAT) in nanoseconds?

Solve All 14 Operating Systems Questions
Other Units in GATE Computer Science & Information Technology (GATE CS)
∑ Engineering Mathematics & Discrete Math🔌 Digital Logic🏗️ Computer Organization & Architecture💻 Programming & Data Structures⚡ Algorithms🔄 Theory of Computation🛠️ Compiler Design⚙️ Operating Systems🗄️ Databases (DBMS)🌐 Computer Networks🧭 General Aptitude (Mandatory)