Thread synchronization
Every object in Java code has one lock, which is useful for ensuring that only one thread accesses critical code in the object at a time. This synchronization helps prevent the object's state from getting corrupted.
Views: 646 | | by Source
View this tutorial