Pergunta de entrevista da empresa DataRemote

Q: Can you explain a race condition?

Resposta da entrevista

Sigiloso

21 de dez. de 2022

A race condition occurs when two or more threads can access shared data and they try to change it at the same time. Because the thread scheduling algorithm can swap between threads at any time, you don't know the order in which the threads will attempt to access the shared data.