# Available cores


The first thing we should to before trying to use multiple cores is to know how many cores (CPUs) we have.


{% embed include file="src/examples/threads/available/src/main.rs" %}



