Modify thread, thread_create() and thread_set_priority()