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


Priority based scheduling queue
Default: thread has the same priority as the thread that created it
setPriority method changes a priority
yield method relinquishes control
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



© 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