Why can adding more threads make a CPU-bound service slower?
Interactive Practice Mode
Formulate your thoughts or take notes before revealing the model solution.
Saved automatically
Model Answer & Deep-Dive Explanation
When runnable threads exceed useful CPU capacity, scheduling, context switching, cache disruption, and lock contention can outweigh any parallelism benefit. Shared data may also cause cache-coherence traffic or serialization in critical sections. Measure CPU utilization, run queues, contention, and throughput under a realistic workload. Size worker pools according to CPU, memory, and downstream limits rather than maximizing thread count. For I/O-bound work, more concurrency can help until another bottleneck is reached, but unbounded concurrency can still exhaust memory or overload dependencies.
Related Questions in Computer Networks & OS
How does a process differ from a thread?
Easy level • 1 views
How does a TCP connection differ from an application-level session?
Medium level • 1 views
What happens under the hood during the TCP 3-Way Handshake and 4-Way Termination?
Intermediate level • 1 views
What is a Process vs a Thread, and what are the causes and conditions of a Deadlock?
Intermediate level • 1 views
What is the architectural difference between Docker Containers and Virtual Machines (VMs)?
Beginner level • 1 views