task_terminate.html   [plain text]

<strong>Function</strong> - Terminate the target task and deallocate its resources.
<strong>kern_return_t   task_terminate</strong>
                <strong>(task_t</strong>            <var>task</var><strong>);</strong>
<dt> <var>task</var> 
[in task send right]
The port for the task to be destroyed.
The <strong>task_terminate</strong> 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.
<a href="task_create.html"><strong>task_create</strong></a>,
<a href="task_suspend.html"><strong>task_suspend</strong></a>,
<a href="task_resume.html"><strong>task_resume</strong></a>,
<a href="thread_terminate.html"><strong>thread_terminate</strong></a>,
<a href="thread_suspend.html"><strong>thread_suspend</strong></a>.