dcsimg
What is the maximum Priority that can be given !_NEWLINE_!to...
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   prasad_sm
Posted On:   Sunday, February 25, 2001 08:36 PM

What is the maximum Priority that can be given
to a Thread in Windows(is it 10) ?

Re: What is the maximum Priority that can be given !_NEWLINE_!to...

Posted By:   Christopher_Schultz  
Posted On:   Wednesday, April 4, 2001 08:21 AM

Regardless of the OS on which you're running, your Thread prority must be between Thread.MIN_PRIORITY and Thread.MAX_PRIORITY.



This thread priority has nothing to do with the thread priorities of the underlying OS.



UNIX, for example, typically has process priorities (via 'nice') in the range -20 to +19, and 'scheduling' priorities in the range 1 to 99 (via 'sched_get_priority_min()' and the symmetric ...max() functions).



Win32 is likely to have a completely different numbering scheme. Fortunately (or unfortunately, depending on your point of view), Java abstracts this all away and you only have to deal with Java Thread priorities.



-chris
About | Sitemap | Contact