3 ms·
No. Rusts memory model allows for the program to be validated at compile-time. It means that broken concurrency code won't compile. (In some cases, you may nee
by arghwhat 8y ago
No. Rusts memory model allows for the program to be validated at compile-time. It means that broken concurrency code won't compile.
(In some cases, you may need to defer validation to runtime by using wrapper types such as RefCell or Mutex, in which case the usual cost of mutexes and the likes appear.)
However, what was referred to is using interrupts vs. polling on embedded hardware. This is very different from regular software development.