29.11.2014 Views

Smalltalk and Object Orientation: an Introduction - Free

Smalltalk and Object Orientation: an Introduction - Free

Smalltalk and Object Orientation: an Introduction - Free

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

This is a very simple algorithm, but it works! The actual implementation of this algorithm is not quite as<br />

tidy. It is presented below:<br />

slice<br />

| aPriority list |<br />

aPriority := self highestPriority.<br />

"Find highest priority level with processes in it"<br />

[aPriority > O <strong><strong>an</strong>d</strong>:<br />

[(quiescentProcessLists at: aPriority) size

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!