Pergunta de entrevista da empresa Yahoo

Improve performance of a multi threaded application, prevent the deadlock and use synclocks