public void run () { // Phil
int chicken;
while (true) {
if (id > 0) {
nap(3000); // Thinking
}
toCanteen.write(id); // Gotta Eat
chicken = fromCanteen.read();// Mmmm...
} // that's good
}
}
Previous slide | Next slide | Back to first slide | View graphic version |