What is a race condition and how might you test for it?

Technical