In one thread, do a loop of:
loop:
movq [rsi], 10
addq [rsi], 5
cmpq [rsi], 15
jeq loop
(Or however you write that with correct assembler).In another thread with the same value in rsi, do:
loop:
movq [rsi], 100
jmp loop
Ensure these threads run on different cores. You would expect the loop in the first thread to eventually terminate. The probability distribution of the time it takes to terminate would probably be informative.Would it terminate on this and chip? How would the distribution be different?