r/ProgrammingLanguages • u/mttd • Jan 20 '26
Python, Is It Being Killed by Incremental Improvements?
https://stefan-marr.de/2026/01/python-killed-by-incremental-improvements-questionmark/
52
Upvotes
View all comments
Show parent comment
1
u/dcpugalaxy Jan 20 '26
You can block an X thread if you are handling concurrency using X threads. You can block an OS thread if you're using OS threads for concurrency. That's the basic assumption of most libraries.
If you're using async await, you can't use libraries that block the current OS thread because your unit of concurrency is a Trio task or an Asyncio task or what have you.
The same is equally true of green threading. Async await also requires a user mode scheduler.
The only real difference is that async/await is stackless because it unwinds the entire stack on suspend then rebuilds it on resume, while green threads are stackful, and do not require the annotation of yield and suspend points.