Pergunta de entrevista da empresa Raytheon

Explain how multithreading works and how to solve race conditions.