P
Psybar Phreak
hi all
i have an array of Process objects, each elements has an id (process.id),
and arrival time (process.at), processing time (process.pt) and a boolean
indicating whether the process has completed (process.done).
atm, i have a loop that i going through the elements and check whether each
elements has been done, i am now at a point in the loop, where it has
discovered, that the current process (currentProcess) is done (ie.
currentProcess.done == 1).
what i want to do, is have a nested loop (im not sure what sort i need here,
this is where hopefully, one of you guys come in...) to continue going
through the array, and find the next elements where "done != 1"
i hope this question is clear, and hope even more so, that someone can help
thanks
PP
i have an array of Process objects, each elements has an id (process.id),
and arrival time (process.at), processing time (process.pt) and a boolean
indicating whether the process has completed (process.done).
atm, i have a loop that i going through the elements and check whether each
elements has been done, i am now at a point in the loop, where it has
discovered, that the current process (currentProcess) is done (ie.
currentProcess.done == 1).
what i want to do, is have a nested loop (im not sure what sort i need here,
this is where hopefully, one of you guys come in...) to continue going
through the array, and find the next elements where "done != 1"
i hope this question is clear, and hope even more so, that someone can help
thanks
PP