This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Threads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Threads" Watch "Threads" New topic


jaya S K

Joined: Aug 18, 2003
Posts: 20
Can anyone give example for the following.
"A thread inherits its priority from the thread it created it"

Anupreet Arora
Ranch Hand

Joined: Jun 17, 2003
Posts: 81

The output is:
SimpleThread --> Name is :main
SimpleThread --> Priority is :5
SimpleThread1 --> Name is :Thread1
SimpleThread1 --> Priority is :5
Changing Priority
SimpleThread1 --> Priority is :8
In SimpleThread2 --> Name is :Thread2
In SimpleThread2 --> Priority is :8

Hi Jaya,
The above example should make things quite clear.
jaya S K

Joined: Aug 18, 2003
Posts: 20
Thanks Anupreet
I agree. Here's the link:
subject: Threads
jQuery in Action, 3rd edition