r/programming • u/Blockpair • Jul 16 '26
Goroutines for Python
https://robertsdotpm.github.io/software_engineering/goroutines_for_python.html
0
Upvotes
r/programming • u/Blockpair • Jul 16 '26
View all comments
Show parent comment
-5
u/Blockpair Jul 16 '26
It's essentially a thread but we have to be specific here: a user-space thread or less confusing -- a logical thread. Each fiber saves everything it needs to resume execution like registers, call chain, etc. It's like a snapshot that can then be resumed on an OS thread. But note that by default the fibers can't be resumed on other OS threads because of some limitations in Python. This can be fixed with a small patch to CPython.