The 'synchronized' keyword ensures that only one thread can access a resource at a time.
← Core Java theorytheory 0/50 · 0%
Concurrency · hard
39. Synchronization
Preventing race conditions.
Check your understanding
1. What is a race condition?
2. Can a block be synchronized?