Thread Priorities

Threads have a priority status associated with them, which determines their importance with other concurrently running threads. By default, a thread has the same priority as its creator. You can set the priority of a thread using the setPriority method of a thread object. The scope of a thread's priority ranges from 1 to 10, and 5 is the normal priority that, for example, the main thread runs at. These are defined by the thread constant fields MIN_PRIORITY, NORM_PRIORITY, and MAX_PRIORITY.



Java 1.4 Game Programming
Java 1.4 Game Programming (Wordware Game and Graphics Library)
ISBN: 1556229631
EAN: 2147483647
Year: 2003
Pages: 237

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