AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
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.