Java solutions for little book of semaphores.