Summary

Appendix A - The Thread API

Java Thread Programming
Paul Hyde
  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


Java Thread Programming
Java Thread Programming
ISBN: 0672315858
EAN: 2147483647
Year: 2005
Pages: 149
Authors: Paul Hyde

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net