Skip to content

GATE CS Processes and Threads questions

Practise Processes and Threads questions for GATE CS. Explore official PYQs and original topic-wise quizzes, check answers and view available solutions. Free, no sign-in.

Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.

17 on this page
Official PYQ2024Operating SystemProcesses and ThreadsMCQ · 1 mark
Which of the following statements about threads is/are TRUE?
Official PYQ2024Operating SystemProcesses and ThreadsMCQ · 2 marks
​​​Consider the following two threads T1\mathrm{T} 1 and T2\mathrm{T} 2 that update two shared variables a\mathrm{a} and b\mathrm{b}. Assume that initially a=b=1\mathrm{a}=\mathrm{b}=1. Though context switching between threads can happen at any time, each statement of T1\mathrm{T} 1 or T2\mathrm{T} 2 is executed atomically without interruption. …
Official PYQ2024Operating SystemProcesses and ThreadsMSQ · 1 mark
​​​​Consider a process P\text{P} running on a CPU\text{CPU}. Which one or more of the following events will always trigger a context switch by the OS\text{OS} that results in process P\mathrm{P} moving to a non-running state (e.g., ready, blocked)?
Official PYQ2023Operating SystemProcesses and ThreadsMSQ · 1 mark
Which one or more of the following need to be saved on a context switch from one thread (T1)\text{(T1)} of a process to another thread (T2)\text{(T2)} of the same process?
Official PYQ2021Operating SystemProcesses and ThreadsMSQ · 2 marks
​​​​​​Consider the following multi-threaded code segment (in a mix of C and pseudo-code), invoked by two processes P1P_1 and P2P_2, and each of the processes spawns two threads T1T_1 and T2T_2: int x = 0; // global Lock L1; // global main () { create a thread to execute foo(); // Thread T1 create a thread to execute foo(); // Thread T2 wait for the …
Official PYQ2017Operating SystemProcesses and ThreadsMCQ · 1 mark
Threads of a process share
Official PYQ2017Operating SystemProcesses and ThreadsMCQ · 1 mark
Which of the following is/are shared by all the threads in a process? Program counter Stack Address space Registers
Official PYQ2014Operating SystemProcesses and ThreadsMCQ · 1 mark
Which one of the following is FALSE?
Official PYQ2011Operating SystemProcesses and ThreadsMCQ · 1 mark
A thread is usually defined as a "light weight process" because an Operating System (OS) maintains smaller data structure for a thread than for a process. In relation to this, which of the following statement is TRUE?
Official PYQ2011Operating SystemProcesses and ThreadsMCQ · 1 mark
Let the time taken to switch from user mode to kernel mode of execution be T1T1 while time taken to switch between two user processes be T2T2. Which of the following is correct?
Official PYQ2007Operating SystemProcesses and ThreadsMCQ · 1 mark
Consider the following statements about user level threads and kernel level threads. Which one of the following statements is FALSE?
Official PYQ2004Operating SystemProcesses and ThreadsMCQ · 1 mark
Consider the following statements with respect to user-level threads and kernel-supported threads context switch is faster with kernel-supported threads for user-level threads, a system call can block the entire process Kernel supported threads can be scheduled independently User level threads are transparent to the kernel Which of the above statements are …
Official PYQ2002Operating SystemProcesses and ThreadsMCQ · 1 mark
Which combination of the following features will suffice to characterize an OS as a multi-programmed OS? More than one program may be loaded into main memory at the same time for execution If a program waits for certain events such as I/O, another program is immediately scheduled for execution If the execution of a program terminates, another program is …
Official PYQ2001Operating SystemProcesses and ThreadsMCQ · 1 mark
Which of the following does not interrupt a running process?
Official PYQ2000Operating SystemProcesses and ThreadsMCQ · 1 mark
Which of the following need not necessarily be saved on a context switch between processes?
Official PYQ1999Operating SystemProcesses and ThreadsMCQ · 1 mark
Which of the following actions is/are typically not performed by the operating system when switching context from process AA to process BB?
Official PYQ1996Operating SystemProcesses and ThreadsMCQ · 1 mark
The process state transition diagram in the below figure is representative of