Updated thread.c

removed the cmp_priority function that is needed only for the next assignment.