Pergunta de entrevista da empresa eBay

There are two threads A and B. B should notify A after completing the task. Write a code using concurancey feature introduced in Java 1.5