I have recently stumbled upon an issue on a piece of code I\'m writing (my first multithreading project) and would like some input on it. Basically, I am trying to implement a t