Intermediate
Operating Systems
Q58 / 100
What is the dining philosophers problem?
Correct! Well done.
Incorrect.
The correct answer is B) A classic synchronization problem illustrating deadlock and starvation: 5 philosophers need 2 forks (chopsticks) but only 5 are available
B
Correct Answer
A classic synchronization problem illustrating deadlock and starvation: 5 philosophers need 2 forks (chopsticks) but only 5 are available
Explanation
Five philosophers alternate thinking and eating. Each needs two adjacent forks. Naive grab-one-fork leads to deadlock. Solutions: allow at most 4 to try simultaneously, ordered acquisition, or arbitration.
Progress
58/100