Files related to my CS self study
gettimeofday
is accurate enough on the machine I am using.
When more threads are used, it takes more time. But when more threads than actual number of CPUs are used, the time stays same. I have 12 CPUs. So 12 threads and 100 threads takes roughly the same amount of time.
As the threshold increase performance doesn’t increase like in the book. As the threshold increase exponentially the performance increase linearly and stops at a point (32). On the other hand with a good threshold (32) performance increase as number of threads increase.