Back to Operating Systems
10 Questions Total

Thread Management MCQs

Topic-wise practice questions for Operating Systems. Test your knowledge, check solutions on demand, and pace your preparation.

Zero-leak answer engine • Rate-limited explanations
Practice in Timed Mode
Q1easy
What is a Green Thread?
Q2medium
Looking at this pseudo-code, what is the output of the variable counter if two threads increment it concurrently? thread_race.c

// Shared variable
int counter = 0;
void thread_func() {
int temp = counter;
Q3medium
Why is context switching between Threads significantly faster than switching between Processes?
Q4easy
Which structure is unique to each individual thread?
Q5easy
What is Thread Cancellation?
Q6easy
Which of the following is shared by all threads within the same process?
Q7easy
What is the primary advantage of Kernel-Level Threads over User-Level Threads?
Q8easy
What are Thread-Local Variables (or TLS)?
Q9easy
In the Many-to-Many threading model, what is the role of the LWP (Lightweight Process)?
Q10medium
In the Many-to-One threading model, what happens if one thread performs a blocking I/O operation?