This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread.setPriority()  RSS feed

 
aman thind
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody tell me what will happen if i set thepriority of a thread more than 10?

PS. i think the priority of that thread will be equal to max_priorty of that threadgroup.

But if i set priority of a threadgroup more than 10, what will happen?

Thanks in advance
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the implementation (in Java 6). I think it answers your question.



Note that setPriority0() is the native method that really sets the priority.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!