JaVa
   

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
   
Comments