File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Thread Priority

 
Mohit Agarwal
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to K&B

" The closest thing to guarantee is that if a low priority thread is running when a high priority thread enters runnable the JVM will preempt the running low priority thread & put the high-priority thread in.

Can this fact be used while answering the SCJP1.4 Qs?

Mohit Agarwal
Would Be SCJP.

"The will to win is worthless if you do not have the will to prepare"
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes.
On a practical note however, the lower priority thread may possibly not be preempted immediately by a thread scheduler using time slices. The lower priority thread may be allowed to finish its time slice.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic