Whats the exack checking order for processes as it affects their sequence in a queue?
As stated in the assignment, for each tick the correct processing order should be: • new processes arrive: if yes, put them into a READY queue; • blocked processes: if there’s any process finished blocking, put it into a READY queue; • running process: (1) if the current running process finishes its CPU burst, choose a new process to run; (2) if there’s a higher priority process in a ready queue, stop the current one and put it into its ready queue; (3) if the current running process uses up its quantum and there exists another process which has the same priority as the current one, then stop the current one; otherwise reset the quantum and continue. The above order means that a process may change its status several times in one tick. For example, a process, which enters the system first, may change its status from NEW to READY, then from READY to RUNNING in just one tick. It seems to me that I only need a set of READY queues, not others. Is it true? Yes, it’s true. The key is to imple