You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

9 lines
401 B

  1. My machine has 4/8 cores
  2. From results, improvement from 1->2 threads and 2->4 threads is almost 2 times,
  3. but not exactly, since creating threads and joining them takes time as well.
  4. When the number of threads is larger then the number of physical cores of my CPU,
  5. e.g. 4->10 threads, 10->100 threads, the improvement is insignificant, since two
  6. threads cannot run on the same core at the same time.