Linux Process Management(17) > another thread in their thread group or the init > process, and set the task's state to TASK_ZOMBIE. > 8. Finally, call schedule() to switch to a new process, > this is the last code the task will ever execute. > 9. ==> The only memory it occupies is its kernel stack > and slab object, which contain its thread_info and > task_struct structures. The task exists solely to > provide information to its parent. > 13. P.28 Removal of the Process Descriptor > 1. The acts of cleaning up after a process and removing its > process descriptor are separate. > 2. When it is time to finally deallocate the process > descriptor, release_task() is invoked. It does the following: > 1. Call free_uid() to decrement the usage count of the > process's user.