Hacker News new | ask | show | jobs
by mistercow 749 days ago
I’ve written tests to do exactly that, by adding carefully placed locks that allow the test to control the pace at which each thread advances. It’s not fun but you can do it.
1 comments

Doesn't inserting locks affect the memory hierarchy consistency mechanisms and therefore interfere with possible race conditions?
That’s not a situation I’ve encountered but “race condition” is an extremely broad category.