Home › GATE CS › PYQs › Operating System

Operating Systems (OS) — GATE CS Previous Year Questions

Practise GATE Operating Systems (OS) previous year questions, organized by topic. Filter by year, marks and MCQ, MSQ or NAT question type. Browse free previews; full access may require a paid plan.

Mapped syllabus topics

  • System Calls, Processes, Threads & IPC
  • Concurrency & Synchronization
  • Deadlock
  • CPU & I/O Scheduling
  • Memory Management & Virtual Memory
  • File Systems

Public question previews

  • With respect to deadlocks in an operating system, which of the following statements is/are FALSE? (2026 · 1 mark · MSQ)
  • Consider a system consisting of k instances of a resource R, being shared by 5 processes. Assume that each process requires a maximum of two instances of resource R and a process can request or release only one instance at a time. Further, a process can request the second instance of the resource only after acquiring the first instance. The minimum value of k for the system to be deadlock-free is ________. (answer in integer) (2026 · 1 mark · NAT)
  • Consider a system that has a cache memory unit and a memory management unit (MMU). The address input to the cache memory is a physical address. The MMU has a translation lookaside buffer (TLB). Assume that when a page is evicted from the main memory, the corresponding blocks in the cache are marked as invalid. For a given memory reference, which of the following sequences of events can NEVER happen? (2026 · 2 marks · MSQ)
  • Consider a hard disk with a rotational speed of 15000 rpm. The time to move the read/write head from a track to its adjacent track is 1 millisecond. Initially, the head is on track 0. The number of sectors per track is 400. The sector size is 1024 bytes. It is necessary to transfer data from 10 randomly located sectors in each of the following tracks in the order: 5, 12 and 7. The total time for the data transfer (in milliseconds) from the hard disk is _________. (rounded off to one decimal place) (2026 · 2 marks · NAT)
  • Consider the following program snippet. Assume that the program compiles and runs successfully. Further, assume that the fork() system call is always successful in creating a process. int main () { int i; for (i = 0; i < 3; i++){ if (fork() == 0){ continue; } break; } printf("Hello!"); return 0; } The total number of times that the printf statement gets executed is ________. (answer in integer) (2026 · 2 marks · NAT)