News for hackers. Stuff that matters.
Re:A viable solution for Python concurrency by bonzini on Friday October 15, 2021 @04:02PM (#28882460)
In Python it would be pointless, but for example it's how Seastar/ScyllaDB work: each thread is bound to a CPU on the host and has its own reactor (event loop) with coroutines on it. QEMU has a similar design.
Re:A viable solution for Python concurrency by yellowapple on Friday October 15, 2021 @06:59PM (#28884112)
It's also (to my knowledge) how Erlang's VMs (e.g. BEAM) work: one thread per CPU core, and a VM on each thread preemptively switching between processes.