unsigned int thread_reset(struct tcb *t)This function is for resetting a thread. On reset, the tcb is restored to the original state, in which the state was created. Only those threads that have completed their execution , can be reset. Typically this function is meant for implementing periodic threads.