What this concurrency-design question tests
This is an easy conceptual question on concurrency that quant firms and tech companies use to assess whether candidates understand the fundamental tradeoffs in multithreaded systems. It probes intuition about lock scope and its effect on system behaviour under contention.
The question rewards candidates who can reason clearly about how lock granularity affects throughput, latency, and resource utilization in parallel workloads. Strong answers identify the key performance dimension and explain the mechanism behind it, rather than listing isolated pros and cons.
- Lock contention and critical-section length
- Parallelism and throughput under concurrent access
- Correctness vs. performance tradeoffs