Sleeping Barber simulation with simultaneous processes, random delays, and semaphores implemented via pipes.