a little modification on thread id and thread_t struct
modify the struct and ID[tid]
modify thread_t struct and ID[tid]