• Post Reply Bookmark Topic Watch Topic
  • New Topic

setPriority()  RSS feed

 
nirjari patel
Ranch Hand
Posts: 386
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In this code, setPriority() has values of 10 and -3. So what does these values mean ? Which is higher priority 10 or -3 ?

Thanks
 
Henry Wong
author
Sheriff
Posts: 22852
119
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nirjari patel wrote:In this code, setPriority() has values of 10 and -3. So what does these values mean ? Which is higher priority 10 or -3 ?

Thanks



Have you tried running this code? I don't think that you can actually set a priority of -3.

Henry
 
nirjari patel
Ranch Hand
Posts: 386
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.

I understand that -3 is not accepted as priority value. Lets say its 3, in place of -3. Now which thread will get priority, one with value 3 or 10 ?

 
Henry Wong
author
Sheriff
Posts: 22852
119
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nirjari patel wrote:Thanks.

I understand that -3 is not accepted as priority value. Lets say its 3, in place of -3. Now which thread will get priority, one with value 3 or 10 ?




Higher value == Higher requested priority.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!