Re:Async Rust in Three Parts
by palata on Thursday October 24, 2024 @03:58AM
(#41933172)
Where an actor has its own thread and communicates with a channel, right?
[ Parent
| on HN ]
Not necessarily, a lot of actors can be sharing the same OS thread and be preemptively switched away from when they hit a certain limit of instructions or start an I/O call. Erlang demonstrates this very well because it works there without a glitch 99.99% of the time (and the remaining 0.01% are because of native code that does not yield control).