PCPP2 Interprocess Communication Practice Question
You are writing a Python script that needs to perform heavy I/O-bound tasks concurrently. Which module should you prioritize to minimize the overhead of global interpreter lock (GIL) contention?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
threading
The threading module is ideal for I/O-bound tasks as it releases the GIL during blocking operations, whereas multiprocessing is better for CPU-bound tasks.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
queue
Why it's wrong here
Queue is a synchronization primitive, not a concurrency model.
- ✓
threading
Why this is correct
Threading is efficient for I/O-bound tasks because it allows concurrent waiting.
- ✗
subprocess
Why it's wrong here
Subprocess is for managing external processes, not managing internal concurrency.
- ✗
asyncio
Why it's wrong here
While useful, the question specifically asks about the threading/multiprocessing context.
- ✗
multiprocessing
Why it's wrong here
Multiprocessing is overkill for I/O-bound tasks and introduces IPC overhead.
Visual reference
About these practice questions
This PCPP2 question is part of Courseiva's 194-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Python Institute exam blueprint
This PCPP2 practice question is part of Courseiva's free Python Institute certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCPP2 exam.