This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Threads" Watch "Threads" New topic
Author

Threads

jaya S K
Greenhorn

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

Thanks
jaya
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.
Regards,
Anupreet
jaya S K
Greenhorn

Joined: Aug 18, 2003
Posts: 20
Thanks Anupreet
 
Don't get me started about those stupid light bulbs.
 
subject: Threads
 
Similar Threads
Tech Word Game
Thread and Object
Thread & Synchronization
WA #1.....word association
subject