The GATE Grind

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

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

  1. GATE 2017 CS Q28 (1 mark, Multiple choice) – Threads of a process share
  2. 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 .
  3. 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…
  4. 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…
  5. GATE 2024 CS (CS1) Q24 (1 mark, Multiple select) – Which of the following statements about threads is/are TRUE?
  6. GATE 2024 CS (CS1) Q25 (1 mark, Multiple select) – Which of the following process state transitions is/are NOT possible?
  7. GATE 2024 CS (CS1) Q57 (2 marks, Numerical answer) – Consider the code: The total number of times the printf statement is executed is
  8. 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?
  9. 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?
  10. GATE 2021 CS 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…
  11. 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…