Updated for Proj 1 part A

Added semaphore for each thread