aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Thread priority Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Thread priority" Watch "Thread priority" New topic
Author

Thread priority

Angela Narain
Ranch Hand

Joined: Apr 14, 2001
Posts: 327
Whenever a new Thread is created it get Normal Priority (5)
Is this right ?
anita narula
Greenhorn

Joined: Nov 28, 2000
Posts: 10
No, it is not right. If the newly created thread is not set a priority in the constructor, then it gets the priority of the thread that created it.
Ash sav
Ranch Hand

Joined: Apr 14, 2001
Posts: 55
I agree with Angela.
If no explicity thread priority is specified for a thread, it is given the default priority of 5.Thread inherits the priority of its parent thread.
Hope this helps.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Thread priority
 
Similar Threads
Threads
very urgent - threads
Programming violations
Thread Priority
How can I control a CPU usages?