Basic HTML version of Foils prepared
May 19 99
Foil 14 Priorities and Scheduling
From
Elements of Concurrent Programming in Java Tango Group Internal Technology Seminars --
Spring 99
.
by
Lukasz Beca
1
Priority based scheduling queue
2
Default: thread has the same priority as the thread that created it
3
setPriority method changes a priority
4
yield method relinquishes control
5
Algorithm:
two or more threads with the highest priority: pick arbitrary one
lower priority thread is preempted if a higher priority thread needs to be run
in Table To:
©
Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu
If you have any comments about this server, send e-mail to
webmaster@npac.syr.edu
.
Page produced by
wwwfoil
on Wed May 19 1999