Skip to main content
🔒 Preview mode. The first 15 Foundations lessons are free; this one is Pro. Start a 7-day trial to unlock the editor, AI hints and the rest of the curriculum. Card required, cancel any time in Dashboard.
Start 7-day trial →
⚡
← Courses
›
Senior Deep-Dives
›
Module 4 · Memory + profiling · Recap
›
Threading: futures vs raw threads
quiz
95 / 161
🇺🇸
EN
▼
↗
Share
⋯
More
+100 XP
📋
Task
📖
Theory
🤖
AI Help
Task
📝 **Question:** Pythonic way to run 100 IO calls in parallel? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
🎯 Quiz
Question
📝 **Question:** Pythonic way to run 100 IO calls in parallel? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
A
Spawn 100 raw `threading.Thread` instances and join them; the kernel scheduler handles fairness for you.
B
`ThreadPoolExecutor.map(fn, iterable)` — automatic pool management, ordered results, clean exception propagation.
C
Use `multiprocessing.Pool` — processes sidestep the GIL even for network calls and scale linearly.
D
Spin up `os.fork()` per request and let the OS reap zombies through `signal.SIGCHLD` handlers.
Submit answer
💬 Discussion
Be the first to ask a question or share a tip.
Sign in
to join the discussion. Reading is free.
Loading discussion…