Updated for Proj 1 part A

Updated init_thread to initialize semaphore