Synchronized prevents multiple threads from entering a critical section of code for the same object.
← Java theorytheory 0/50 · 0%
Threads · medium
25. Synchronized Keyword
Mutual exclusion.
Check your understanding
1. What does it lock on?
2. Static synchronized locks on...?