thread_single_end
thread_single_end(p, SINGLE_BOUNDARY);
thread_single_end(p1, SINGLE_BOUNDARY);
thread_single_end(p1, SINGLE_BOUNDARY);
thread_single_end(p, SINGLE_ALLPROC);
void thread_single_end(struct proc *p, int how);