mlfqs flag check in priority functions