(Conceptual) Which condition is NOT required for a Deadlock to occur?
6Multiple Choice
(Code-Tracing) Analyze the code below. What potential issue does this create?
sync_example.c
void thread1() {
lock(A); lock(B);
}
7Multiple Choice
(Conceptual) What is a Spinlock?
8Multiple Choice
(Conceptual) What does the "Progress" condition in critical sections guarantee?
9Multiple Choice
(Comparison) What is the difference between a Mutex and a Semaphore?
10Multiple Choice
(Conceptual) Which strategy involves killing a process to break a deadlock?
11Multiple Choice
(Calculation) In the Banker's Algorithm, what is the "Safe State"?
12Multiple Choice
(Scenario-Based) Why is a Priority Inversion dangerous?
13Multiple Choice
(Conceptual) What is a Condition Variable in the context of Monitors?
14Multiple Choice
(Code/Logic) What happens if lock(
15Multiple Choice
(Conceptual) What does "Atomic Operation" mean in concurrency?
1Multiple Choice
(Conceptual) Which of the four conditions for deadlock can be prevented by enforcing
a strict hierarchical ordering of resource acquisition?
2Multiple Choice
(Scenario-Based) A system with only one printer and one scanner has three
processes. Process A holds the printer and requests the scanner. Process B holds the
scanner and requests the printer. What state is this?
3Multiple Choice
(Conceptual) The Banker's Algorithm is a method for:
4Multiple Choice
(Code/Logic) In a Resource Allocation Graph, what does a cycle indicate?
5Multiple Choice
(Conceptual) How can the "No Preemption" condition be broken to prevent
deadlocks?
6Multiple Choice
(Scenario-Based) A database system encounters a deadlock and decides to choose a
"victim" process to terminate. Which factor is LEAST likely to be considered when choosing
the victim?
7Multiple Choice
(Conceptual) What is the most common approach to handling deadlocks in modern
consumer operating systems (like Windows or macOS)?
8Multiple Choice
(Comparison) What is a Safe State in the context of deadlock avoidance?
9Multiple Choice
(Conceptual) What does the "Hold and Wait" condition mean?
10Multiple Choice
(Scenario-Based) How do Hierarchical Lock Ordering schemes prevent deadlocks?
11Multiple Choice
(Conceptual) What is "Starvation" in the context of resource allocation?
16Multiple Choice
Which CPU scheduling algorithm gives the minimum average waiting time for a given set of stationary processes?