Polite Scheduling
This applet runs two threads with the same priority that call
Thread.yield()
. (The threads in the Selfish Scheduling applet did not call yield.)
RaceTest2Applet
is based on
RaceTest2
,
but it extends Applet and uses
PoliteRunnerTextArea
instead of
PoliteRunner
.
PoliteRunnerTextArea
merely writes to a TextArea
widget as well as stdout.
Back to the Threads page.
Copyright © 1997, The Regents of the University of California.
All rights reserved.
Last updated: 10/09/05,
comments to: cxh at eecs