# Counter with threads (local counting)

* This solution does the work locally and updates the shared variable only at the end

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

---

* Mutex
* lock


