Example3 - request
public void synchonized askFor(){
while (inUse)
try{
wait();
}
catch (InterruptedException e) {
System.err.println(“Exception “ + e);
}
inUse = true;
}
Previous slide
Next slide
Back to first slide
View graphic version