3 ms·
How does it balance tasks across CPU cores? The thing I like in Go is that I don’t have to worry about that, it’s all automatic.
by jedisct1 7y ago
How does it balance tasks across CPU cores?
The thing I like in Go is that I don’t have to worry about that, it’s all automatic.
- pythonist 7y agoI am wondering that also, scheduler is of most importance. Go is such a joy to work with.
- Argorak 7y agoIt does the scheduling for you. That's why all Futures put onto task through `async_std::task` must be `Send`. That's Rust parlance for "can be safely migrated between threads". It's not Go, but we know what people like about Go. <3
- pcwalton 7y agoIn Rust you use async/await with a scheduler like mio that will automatically do that for you as well.
- littlestymaar 7y agoHas preemptive scheduling landed in Go ? Because last time I worked with it (Go 1.10) it was still cooperative and you had to worry about it otherwise you could get bitten badly.