Changing Semaphore project to Multithreading