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

Priority of new thread  RSS feed

 
Roger Zhao
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,all:
What is the default priority of a newly created thread.
a MIN_PRIORITY (which is defined as 1 in the Thread class.)
b NORM_PRIORITY (which is defined as 5 in the Thread class.)
c MAX_PRIORITY (which is defined as 10 in the Thread class.)
d A thread inherits the priority of its parent thread.
why the anwser is not b but d?
Thanks!
Roger
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Um, because that's the correct answer - that's how the makers made it.
Moving this to the Threads and Synchronization forum...
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!