5.64 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Solution to Dining Philosophers (cont.) //-- local functions -- void pickup (int i) { state[i] = HUNGRY; test(i); // try to start eating.
{}