File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Calling the setPriority method on a thread object... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Calling the setPriority method on a thread object..." Watch "Calling the setPriority method on a thread object..." New topic
Author

Calling the setPriority method on a thread object...

WiLL Tao
Ranch Hand

Joined: Dec 14, 2001
Posts: 56
Calling the setPriority method on a thread objectcan directly cause a thread to stop executing?
And exiting from a synchronized block can cause a thread to stop executing?
I'm confused.Thanks for any help.


Thank Folks who <b>Make Sense</b> here.<br />SCJP Platform 2
Mag Hoehme
Ranch Hand

Joined: Apr 07, 2002
Posts: 194
Hi Will,
this question keeps popping up. It is basically a question of wording: Modifying the priority of a thread may (on some systems) cause an executing thread to stop.
This depends on the specific implementation of the JVM: Some JVMs do react to the modification of a thread's priority, others do not.
By searching the archives you may also be able to find more details explanations of this question.
PS: I got the same question several times wrong.


Mag
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling the setPriority method on a thread object...
 
Similar Threads
Thread
setPriority()?
setPriority method on a thread object directly cause a thread to stop executing ?
question regarding java thread
Question on exercise about Thread(2)