MCQs
Process Management & Scheduling
Process Management & Scheduling MCQs – Operating System
2
Total MCQs
0
Topics
0
Past Papers
Process Management & Scheduling
Q1
A piece of code that only one thread can execute at a time is called:
Explanation
A Critical Section is a part of a program where shared resources are accessed or modified. To prevent race conditions, only one thread or process should execute the critical section at a time. Mutual exclusion is the mechanism that ensures this restriction, while synchronization is the broader concept of coordinating concurrent processes or threads.
Q2
When a thread waits indefinitely for some resource, but other threads are actually using it, it is called:
Explanation
Starvation is a condition in which a process or thread waits indefinitely for a resource or CPU time because other processes or threads are repeatedly given priority. It can occur when resource allocation or scheduling is unfair.