Quote Originally Posted by jcox23 View Post
(i'm mainly concerned on how to kill a thread that is blocking)
Set a flag that the thread will check right after acquiring a semaphore and release the semaphore so that threads that are being blocked can continue. They should see the flag and exit.