Function - Terminate the target task and deallocate its resources.
kern_return_t task_terminate (task_t task);
The task_terminate function kills task and all its threads, if any. The kernel frees all resources that are in use by the task. The kernel destroys any port for which the task holds the receive right.
Only generic errors apply.
Functions: task_create, task_suspend, task_resume, thread_terminate, thread_suspend.