Plurrrr

Sun 05 Jun 2022

Arc and Mutex in Rust

When writing concurrent Rust you will encounter Arc and Mutex types sooner or later. And although Mutex might already sound familiar as it's a concept known in many languages, chances are you haven't heard about Arc before Rust. What's more, you can't fully understand these concepts without tying them to the ownership model in Rust. This post is my take on understanding Arc and Mutex in Rust.

Source: Arc and Mutex in Rust, an article by Piotr Sarnacki.