2 ms·
> You would expect the loop in the first thread to eventually terminate. Why would you expect it to eventually terminate? There is nothing in the architecture
by chrisseaton 6y ago
> You would expect the loop in the first thread to eventually terminate.
Why would you expect it to eventually terminate? There is nothing in the architecture that should lead you to expect that.
The architecture does not guarantee that instructions from the first loop will be interleaved with the second in any particular way, no matter what cores they're running on.
> The probability distribution of the time it takes to terminate would probably be informative.
But again... the architecture does not guarantee the set of or probability of distribution of interleavings. You cannot write a sound program using this information.