Hello..
About Rust programming language..
I have just read the following about Rust programming language:
"What I’m going to discuss here is the choice made in Rust to disallow
having multiple mutable aliases to the same data (or a mutable alias
when there are active immutable aliases), even from the same thread.
This is essentially the “Read-Write lock” (RWLock) pattern, except it’s
not being used in a threaded context, and the “locks” are done via
static analysis (compile time “borrow checking”)."
Read more here:
https://manishearth.github.io/blog/2015/05/17/the-problem-with-shared-mutability/
So as you are noticing that to avoid race conditions etc. Rust is
using the Read-Write lock (RWLock) pattern , but i think this is not a
fine-grained parallelism, so with the Read-Write lock (RWLock) pattern
of Rust you are loosing fine-grained parallelism that gives
much more parallelism.
Thank you,
Amine Moulay Ramdane.