Pregunta de entrevista de MediaTek

How to prevent race conditions?