| ||||
Copyright 1999 Sams Publishing |
|
Member Variables |
The only publicly accessible member variables are used to specify the range of priority values that can be passed to setPriority() . |
Thread.MAX_PRIORITY |
public static final int MAX_PRIORITY |
The highest thread-scheduling priority that can be passed to setPriority() for a particular VM. Generally, it is 10 for an application and 6 for an applet. |
Threads running at this level might hog the processor and should be designed to block frequently to give other threads a chance to run. See Chapter 6, Thread Prioritization, for more information. |
Thread.MIN_PRIORITY |
public static final int MIN_PRIORITY |
The lowest thread-scheduling priority that can be passed to setPriority() for a particular VM. Generally, it is 1 . Threads running at this priority might not get much processor time and might not get any if there are other higher-priority threads running. See Chapter 6 for more information. |
Thread.NORM_PRIORITY |
public static final int NORM_PRIORITY |
A not-too-high, not-too-low thread-scheduling priority for setPriority() . Generally, it is 5 . Threads running at this priority usually get a chance to run without hogging the processor. See Chapter 6 for more information. |
| |||
Toc |