a. What is wrong with everybody doing the following – other than that the philosophers never get up from the table?
1. think for a while
2. get left chopstick
3. get right chopstick
4. eat for a while
5. return left chopstick
6. return right chopstick 7. return to 1
b. How can the above be fixed to avoid deadlocks?
c. Is your solution starvation free? Literally!
8. (10 pts) Describe the environment in which a wait () call is legal?
Reviews
There are no reviews yet.