Skip to content
Sharp

Concurrency basics · interview question

Why might Collections.synchronizedMap become a bottleneck in a high-concurrency application?

Multiple choiceMediumchapter-15-curatedpremiumconcurrencyconcurrent-collections
Choose one answer
Answer and explanation

Correct answer

D. It locks the entire map on every operation.

Why

Collections.synchronizedMap locks the entire map for every operation, which can lead to performance bottlenecks in high-concurrency scenarios as only one thread can access the map at a time.

Test yourself on Concurrency basics

A free test with instant, explained results. No account needed.

Start free test
All Concurrency basics questions →