Operating Systems, Computer Scienc.
work to equal available and sets finish to false for each process. It then finds a process such that its flag is false and its need is less than or equal to work. If it finds one, it assumes the process finished and releases its resources, adding them to work. The algorithm repeats this process