← Quiz: Process Synchronization: all 10 questions
Quiz: Process Synchronization · Question 9 of 10
In the dining philosophers problem, how does making one philosopher pick up the right fork first prevent deadlock?
In the dining philosophers problem, how does making one philosopher pick up the right fork first prevent deadlock?
- A.It gives that philosopher more forks
- B.It breaks the circular wait, because not everyone can hold their left fork while waiting for the right one
- C.It removes mutual exclusion
- D.It makes the philosophers eat faster
Answer & explanation
Correct answer: It breaks the circular wait, because not everyone can hold their left fork while waiting for the right one
A different order for one philosopher means the cycle of waiting cannot close.
Can you get the rest right without peeking?
Take the timed Quiz: Process Synchronization quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →