mjs513
Senior Member+
defragster. First test results: 14963.00==14965 with 3 misses early on. This is with timeslice 1ms for all threads. Going to run it now with your settings. I am doing something a little different than you are to ensure variables are thread safe. I am using atomics with load/store. I will post it for reference .
tonton81. Right now all serial prints are done from within the loop. If we start doing prints from the threads will definitely have to use a mutex. I remember your discussion on the multithread thread
Mike
UPDATE: I changed the timeslice to 10 ms and stopped real quick: here are the results:
! ! ! ! ! ! ! !! ! ! !! !! ! ! ! !!!! ! ! ! PairMiss18
1781.00==1781
Update 2: here is my updated code:
tonton81. Right now all serial prints are done from within the loop. If we start doing prints from the threads will definitely have to use a mutex. I remember your discussion on the multithread thread
Mike
UPDATE: I changed the timeslice to 10 ms and stopped real quick: here are the results:
! ! ! ! ! ! ! !! ! ! !! !! ! ! ! !!!! ! ! ! PairMiss18
1781.00==1781
Update 2: here is my updated code:
Attachments
Last edited: