Object as a Monitor
Synchronized method
Synchronized block
Unsynchronized method
Lock
Monitor Queue
Object
public synchronized void methodA(){
// any code
}
objectA.methodA();
synchronized(objectA){
// any code
}
Previous slide
Next slide
Back to first slide
View graphic version