Sari la conținutul principal
⚡
← Cursuri
›
Python 2026: What's Actually New
›
Module 1 · Language features (3.11 -> 3.14)
›
Python 3.13 free-threaded (no-GIL): when it wins
quiz
1 / 27
🇷🇴
RO
▼
↗
Distribuie
⋯
Mai mult
+60 XP
📋
Sarcină
📖
Teorie
🤖
Ajutor AI
Sarcină
🌐 shown in RU
Which workload sees the LARGEST speedup from Python 3.13's no-GIL build?
🎯 Test
Întrebare
Which workload sees the LARGEST speedup from Python 3.13's no-GIL build?
A
A web scraper making 500 concurrent HTTPS requests: network I/O dominates, so threading finally becomes the right tool for concurrent I/O without the GIL contention that used to force asyncio
B
A batch of 8 threads each running a pure-Python numeric simulation (Monte Carlo, prime sieve, PBKDF2-style hash) on 8 CPU cores: each thread runs Python bytecode arithmetic in parallel now that the interpreter lock is gone
C
A single-threaded FastAPI worker handling one request at a time: the freed lock means the interpreter can inline more optimisations without concurrency overhead in the hot path
D
A script that shells out to ffmpeg via subprocess.run: the subprocess already runs on its own OS process so removing the GIL shortens the parent-side wait loop considerably
Răspunde
💬
Contactează suportul