Using more threads than actual number of CPU cores


I currently run hundreds of tasks on a 10 core CPU, so I set JULIA_NUM_THREADS to 10.
In my program, each task consumes only 50% of the resources of a core.
Is there a downside to increase JULIA_NUM_THREADS to 20 in order to get 100% CPU usage ?

Try it and benchmark it. Sometimes oversubscribing helps