complete the mix-edf sched in pth. and part of test code