
Tokio with Carl Lerche
Rustacean Station
How to Balance Work Across Threads
The Mio uses a work-stealing scheduler to keep all the work on one thread. This means that there is less overhead in terms of synchronizing threads, but it can lead to underutilization if not balanced. The Tokyo blog post outlines how Tokyo learn from Go's scheduler and reborrow the lots. A lot of implementation is shared, I guess, like the strat algorithms,. Obviously you can't just take Go copy and paste it, but a lot of the algorithms are shared between Tokyo and Go.
00:00
Transcript
Play full episode
Remember Everything You Learn from Podcasts
Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.