I\'ve been trying to use a semaphore to synchronize my threads but for the life of me something doesn\'t seem to work. This project is quite large so I won\'t copy it in its