Priorities and Scheduling
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