| A Semaphore that grants requests to threads with higher
Thread priority rather than lower priority when there is
contention. Ordering of requests with the same priority
is approximately FIFO.
Priorities are based on Thread.getPriority.
Changing the priority of an already-waiting thread does NOT
change its ordering. This class also does not specially deal with priority
inversion -- when a new high-priority thread enters
while a low-priority thread is currently running, their
priorities are not artificially manipulated.
[ Introduction to this package. ]
|