check clone flag and decide sharing level
- Sets up a new
thread_info
structure and a kernel mode stack
- Checks whether user exceeds his/her allowed number of processes.
- Copies file descriptors, page tables, …
- Sets state of the child to TASK_RUNNING
- Sets the parenthood relationship
- Sets the thread group relationship