Synchronized statements
The synchronized statement:
mutual exclusion (lock) of data access instead of a synchronized method.
very lightweight.
Syntax:
synchronized(Object) {
}
Previous slide
Next slide
Back to first slide
View graphic version