Assignment 5 Process Synchronization Solution