Pergunta de entrevista da empresa Apple

Common Java multithreading question (if you are familiar with those types of question)