Anthropic · CS Fundamentals
Explain CPU-Bound vs I/O-Bound Work
TrueInterview
October 7, 2026 · 1 min read
Explain what CPU-bound and I/O-bound workloads are. Next, contrast the behavior of multithreading, asynchronous I/O, and multiprocessing for each workload type, with particular attention to Python.
Include:
- Ways to identify each workload in real-world scenarios.
- Specific examples.
- The influence of Python's GIL on the decision.
- Which concurrency model suits tasks like web crawling, parsing, and CPU-intensive computation.
Overview: The question assesses comprehension of CPU-bound versus I/O-bound workloads and how they interact with concurrency approaches like multithreading, asynchronous I/O, and multiprocessing in Python, covering the Global Interpreter Lock (GIL) and its relevance to tasks such as web crawling, parsing, and heavy computation.
Loading comments…