Unnamed
public text v1 · immutable
for (Process p : unacceptedList.getCollection() ) { // loop over all accepted procs
if (p.getPriority() >= maxAccepted ) {
//unacceptedList.removeProcess(p);
System.out.println("Removed: " + unacceptedList.getCollection().remove(p));
promoted.addProcess(p);
}
}