[squeak-dev] Are Squeak processes pre-emptive?

Randal L. Schwartz merlyn at stonehenge.com
Thu Apr 15 14:25:51 UTC 2010


>>>>> "Chris" == Chris Muller <ma.chris.m at gmail.com> writes:

>> After all, the higher priority job could always just force a cooperating
>> job to yield if needed.

Chris> But it would be better for the cooperating process to be able to put
Chris> *itself* to the back of the line..  That way, the "cooperative" nature
Chris> of the process-scheduling behavior is localized in the business-logic
Chris> rather than centralized in a process-manager.  Something like;
Chris> Processor yield: true or Processor yield: false?

I believe "yield" already means "back of the line", which it should.  If
yield put itself in the front of the line, it'd just start running
again!

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion



More information about the Squeak-dev mailing list