Java uses the synchronized keyword to lock objects.
Threads move through states like New , Runnable , Blocked , and Terminated . π Synchronization and Concurrency Operating System Concepts with Java
When multiple threads access shared data, the OS must prevent data corruption. Java uses the synchronized keyword to lock objects