views:

37

answers:

1

I'm implementing now CPU schedule algorithms FCFS, SJF and Round Robin. Could somebody tell when process is removed from queue (FCFS,SJF,RR)? I mean, first CPU execute thread and after executing remove from queue or the other way around?

+1  A: 

A process (thread) should be removed from the queue immediately prior to execution, then placed back on the scheduling queue once execution is suspended.

Justin Ethier