Implementation of thread suspend/resume requests.