Informatica Interview Question

the unexpected question was to implement a practical scenario of semaphore using java threads. Had to use wait, notify and all the methods in the Thread class.