Cafe simulation with java threads.