Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Thread.MIN_PRIORITY and MAX_PRIORITY  RSS feed

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Guru�s

Pls explain me for the following statement. It say�s
�The thread's priority the lower of the two priorities.�
I would like to know lower of which two priorities?

Thanks, Raghu.K


"If a thread's priority is set within the range of Thread.MIN_PRIORITY and Thread.MAX_PRIORITY but higher Than the thread group�s maximum priority, it will compile fine but in runtime the scheduling system will assign The thread's priority the lower of the two priorities."
 
author
Sheriff
Posts: 23564
138
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The two priorities being referred to, are the priority of the thread, and the maximum priority of the thread group that the thread is assigned to. Basically, what the statement is pointing out is that the thread group will limit the thread priority of the threads in the group. Any thread with a priority, that is higher than the maximum, will be lowered to the maximum thread priority of the group.

Henry
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!