Consider the Dining Philosophers problem. (a) Draw the state transition diagram based on the code in Figure 2-47. (b) Wi
Posted: Sat May 14, 2022 6:37 pm
Consider the Dining Philosophers problem. (a) Draw the state transition diagram based on the code in Figure 2-47. (b) Will it still work if we change the code in the procedure put fork() to be like below? Explain. void put_fork(i) { down (&mutex); test (LEFT); test (RIGHT); state THINKING; up (&mutex); }