Questions: Deadlock: Conditions and Modeling

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A system has three processes in a circular wait, each holding one resource and waiting for one held by the next. A developer proposes imposing a total ordering on resource types — all processes must acquire resources in increasing order of their ID. Which Coffman condition does this eliminate, and is this alone sufficient to prevent deadlock?

AIt eliminates mutual exclusion — and yes, this alone prevents deadlock
BIt eliminates circular wait — and yes, eliminating any single Coffman condition is sufficient to prevent deadlock
CIt eliminates hold-and-wait — and yes, this alone prevents deadlock
DIt reduces circular wait — but all four conditions must be eliminated to guarantee deadlock prevention
Question 2 Multiple Choice

A Resource-Allocation Graph for a system shows a cycle involving three processes and three resource types. What can be definitively concluded?

AThe system is currently in deadlock
BDeadlock is possible but not certain — a cycle is sufficient for deadlock only when all resource types involved have single instances
CDeadlock is present when resource types have multiple instances, but not when they have single instances
DThe system will enter deadlock within the next scheduling cycle
Question 3 True / False

Eliminating mutual exclusion is the most practical Coffman condition to target when designing real systems to prevent deadlock.

TTrue
FFalse
Question 4 True / False

A cycle in the Resource-Allocation Graph is a necessary condition for deadlock when all resource types involved have exactly one instance.

TTrue
FFalse
Question 5 Short Answer

Why is circular wait considered the most practical Coffman condition to eliminate in system design, compared to the other three?

Think about your answer, then reveal below.