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.
 
 
 

14 lines
566 B

  1. The execution time is almost the same as ex3.
  2. But, in this case, after increasing number of threads
  3. 4->10 and 10->100, the execution time sometimes
  4. insignificantly increased (it happened before
  5. several times). It is probably caused by
  6. mutexes, since they don't allow multiple threads run
  7. the locked code at the same time. The number of
  8. threads is way higher than the number of physical
  9. cores and the most of them don't even work at the same
  10. time because of mutexes. The increased amount of
  11. execution time is probably caused by the overheads of
  12. threads and mutexes.