Add semaphore based pause and resume of threads beyond a user set value.
Add semaphore based pause and resume of threads beyond a user set value.