Pergunta de entrevista da empresa ShowMax

General: What is deadlock, what is race condition and how do you avoid them?

Resposta da entrevista

Sigiloso

20 de dez. de 2015

General recommendation - just use threadpools. If there are reasonable implications against them, use synchronized() and welcome to the interlocking hell.