priority scheduling minus system call implemented