modifications to longTermScheduler

still needs pthreads