previous |
start |
next
Synchronized Methods
- By executing a synchronized method:
- The thread acquires the object lock.
- No other thread can acquire the lock.
- No other thread can modify the state of the object until the
first thread is finished
previous |
start |
next