So I need the process to terminate for the number of processes which have arrived. but it just dies once.
Last edited on
Someone pleasr help so confused. So if 4 process arrives, 4 needs to die, then ready queue is empty, so supposed to give error.
First thing i see is that you want line 20 to be ==, not =. You're doing assignment instead of comparison.