The GATE Grind

GATE Operating System: System Calls, Processes, Threads and IPC – Previous Year Questions

21 GATE previous year questions on System Calls, Processes, Threads and IPC (Operating System, Computer Science) with answers and explanations, from every paper.

21 questions worth 26 marks in all (16 1-mark, 5 2-mark). Asked between 2007 and 2026, so you can see how the topic has been tested over time.

  1. GATE 2007 CS Q17 (1 mark, Multiple choice) – Which statement about user/kernel-level threads is FALSE?
  2. GATE 2008 CS Q64 (2 marks, Multiple choice) – Which statement about synchronous/asynchronous I/O is NOT true?
  3. GATE 2008 CS Q66 (2 marks, Multiple choice) – A process executes the code below. How many child processes are created?
  4. GATE 2021 CS (CS2) Q52 (2 marks, Multiple select) – Processes P1,P2 each execute this code with ordinary process-private globals; each creates two threads. Which statements hold?
  5. GATE 2015 CS (CS3) Q14 (1 mark, Multiple choice) – For a system with n CPUs, the maximum number of processes in the Ready state is
  6. GATE 2011 CS Q16 (1 mark, Multiple choice) – User-to-kernel mode switch time is t₁; switching between two processes takes t₂. Which is true?
  7. GATE 2011 CS Q26 (1 mark, Multiple choice) – An OS maintains smaller per-thread structures than per-process structures. Which statement is true?
  8. GATE 2012 CS Q18 (1 mark, Multiple choice) – A process executes fork(); fork(); fork();. How many child processes are created?
  9. GATE 2017 CS (CS2) Q17 (1 mark, Multiple choice) – Which are shared by all threads of one process? I: Program counter. II: Stack. III: Address space. IV: Registers.
  10. GATE 2014 CS (CS1) Q30 (1 mark, Multiple choice) – Which thread statement is FALSE?
  11. GATE 2017 CS (CS1) Q28 (1 mark, Multiple choice) – Threads of a process share
  12. GATE 2019 CS Q27 (1 mark, Numerical answer) – The following C program is executed on a Unix/Linux system: The total number of child processes created is .
  13. GATE 2026 CS (CS1) Q63 (2 marks, Numerical answer) – Consider the following program snippet. Assume that the program compiles and runs successfully. Further, assume that the `fork()` system call is…
  14. GATE 2024 CS (CS2) Q25 (1 mark, Multiple select) – Consider a process P running on a CPU. Which one or more of the following events will always trigger a context switch by the OS that results in…
  15. GATE 2024 CS (CS1) Q24 (1 mark, Multiple select) – Which of the following statements about threads is/are TRUE?
  16. GATE 2024 CS (CS1) Q25 (1 mark, Multiple select) – Which of the following process state transitions is/are NOT possible?
  17. GATE 2024 CS (CS1) Q57 (2 marks, Numerical answer) – Consider the code: The total number of times the printf statement is executed is
  18. GATE 2023 CS Q22 (1 mark, Multiple select) – Which one or more of the following need to be saved on a context switch from one thread (T1) of a process to another thread (T2) of the same process?
  19. GATE 2023 CS Q23 (1 mark, Multiple select) – Which one or more of the following options guarantee that a computer system will transition from user mode to kernel mode?
  20. GATE 2021 CS (CS1) Q24 (1 mark, Multiple select) – Which of the following standard C library functions will always invoke a system call when executed from a single-threaded process in a UNIX/Linux…
  21. GATE 2020 CS Q22 (1 mark, Multiple choice) – Consider the following statements about process state transitions for a system using preemptive scheduling. I. A running process can move to ready…