Monitors
Methods can be synchronized
public synchronized void myMethod() {}
Every object with synchronized methods is a monitor.
A monitor lets only one thread at a time execute a synchronized method on the object.
Previous slide
Next slide
Back to first slide
View graphic version