# Mutex - without threads

* Mutex = mutual exclusion.

A few examples to get used to the syntax of [Mutex](https://doc.rust-lang.org/std/sync/struct.Mutex.html) without even using a thread.

{% embed include file="src/examples/threads/mutex-without-threads/src/main.rs" %}
{% embed include file="src/examples/threads/mutex-without-threads/out.out" %}

---

* Mutex


