C.W.K.
Stream
Quiz · 3 questions

Concurrency — Async, Threads, Processes

asyncio / threading / multiprocessing / GIL

Level 0Curious
0 XP0/93 lessons0/23 achievements
0/100 XP to next level100 XP to go0% complete

Quiz

01Why does threading not give true parallelism for CPU-bound work in CPython?
Hint
What does the GIL actually lock?
02What does forgetting await on an async function call do?
Hint
What does f() return when f is async def?
03When should you reach for multiprocessing instead of asyncio?
Hint
What's the asyncio limitation that processes solve?
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.