Pregunta de entrevista de Playtechtonics, inc.

what is the problem with this code in multithreaded environment?

Respuesta de la entrevista

Anónimo

27 de jul de 2009

in case of a context switch after the condition, the second thread might change the value of the accounts[account]