thread.c clean and initial support for mlfqs
minor clean