Why though that happens? Why do n threads accumulate n ticks per time? Well, it makes sense in a way because the algorithm of calculating 10 sec is executed n times. Or am I missing something?
By the way, I execute your 10 sec algorithm. For 8 threads I get 80secs. For more than 8 threads though I get the same, 80 secs. I was thinking of dividing by the number of threads. But that is only useful if the threads are equal or less than the cores. I would like also to see what happens for like 200 threads. Can I use clock() for that?