Raytheon Interview Question

Explain how multithreading works and how to solve race conditions.