3 ms·
I wonder if rust's "fearless concurrency"[1] allows you to create threads which can migrate between CPUs. [1] - https://blog.rust-lang.org/2017/11/14/Fearless-
by nurettin 9y ago
I wonder if rust's "fearless concurrency"[1] allows you to create threads which can migrate between CPUs.
[1] - https://blog.rust-lang.org/2017/11/14/Fearless-Concurrency-In-Firefox-Quantum.html https://blog.rust-lang.org/2017/11/14/Fearless-Concurrency-I...
- MaxBarraclough 9y agoThreads which can move between CPUs? That's up to the OS, no?
- nurettin 9y agoAccording to the article, an ADA partitioning scheme (ravenscar) enforces this option.
- qznc 9y agoNo Real time scheduling on multicore is theoretically hard. The problem is not subtle concurrency bugs which can be squashed with a clever type system.
- eru 9y agoRusts approach won't help you with scheduling---but in theory you don't have to do all your scheduling dynamically: if you know your program well enough you can schedule a lot of things statically and give guarantees. (I wonder if anyone has come up with the right type system for this problem, yet?)
- rurban 9y agoPony and parrot did.
- rurban 9y agoRust not, because rust is not thread safe. You manually have to prevent it from dead-locking. Fearless concurrency is just a clever marketing trick. But with pony you can. And there are several other "fearless concurrent" systems with native threading.