Q20.webp
H

Q20.webp

Question: 20
(Choose 1 answer)
Analyze the relationship between the dining philosophers problem and the use of semaphores or mutexes in
concurrent programming, outlining the potential for deadlock situations and solutions.
A. The dining philosophers problem exemplifies the need for thread priorities in deadlock resolution.
B. Semaphores and mutexes help prevent deadlocks by allowing multiple processes to access critical
sections simultaneously.
C. The dining philosophers problem demonstrates how shared resources, managed by semaphores or
mutexes, can lead to deadlock situations without proper synchronization.
D. Semaphores and mutexes are ineffective in resolving the dining philosophers problem, as it primarily deals
with scheduling issues.

Thông tin

Category
OSG202
Thêm bởi
hoangnam841
Ngày thêm
Lượt xem
1,288
Lượt bình luận
4
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom