Function - Suspend the target task.
kern_return_t task_suspend (task_t task);
The task_suspend function increments the suspend count for task and stops all threads within the task. As long as the suspend count is positive, no newly-created threads can execute. The function does not return until all of the task's threads have been suspended.
To resume a suspended task and its threads, use task_resume. If the suspend count is greater than one, task_resume must be repeated that number of times.
Only generic errors apply.
Functions: task_create, task_info, task_resume, task_terminate, thread_suspend.