Pergunta de entrevista da empresa Playtechtonics, inc.

what is the problem with this code in multithreaded environment?

Resposta da entrevista

Sigiloso

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]