# Counter in a loop in the same process and thread

* This simple examples shows how we can change a variable from multiple threads
* This is the example without any threads:

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


