Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Thread Question

 
Robert Keyes
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I’ve been looking around in the certification results forum and saw that a lot of people are saying that the thread questions are the hardest. I looked at the exam objectives on the Sun web site and got the impression that a person only needs to be familiar with the wait, notify, and notifyAll methods. I’m sure there must be more to it than that because those three methods are from the Object class. I’m sure that knowledge of some Thread methods is also required.
What Thread methods might appear on the exam? I have no doubt that I’ll be seeing start and run, but what about others such as sleep, yield, setPriority, setName, setDaemon, join, isInterrupted, interrupted, interrupt, isAlive, holdsLock, getPriority, getName, currentThread?
 
Don Bosco
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Robert,
Do u know about Velmurugan Periasamy's notes for java certification. You should read this material.
It is around 40 pages. Go through each and every point in his material, make your own examples and practice.
http://www.geocities.com/velmurugan_p/notes.html
 
Jose Botella
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch Robert.
I would say holsdLock is the only one not very likely to appear in the exam.
Disclaimer: I am not saying that is not actually going to appear in it. In fact, it would be part of a nice test to find out whether someone understand which lock is hold by a particular thread. But do not tell it Dan Chisholm , or he will write a test for it.
 
Robert Keyes
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the welcome and the links.
 
Dan Chisholm
Ranch Hand
Posts: 1865
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jose Botella:
...it would be part of a nice test to find out whether someone understand which lock is hold by a particular thread. But do not tell it Dan Chisholm , or he will write a test for it.

Yes, but I would probably add it to the assertions section of the exam since it is a new method introduced in 1.4 for use with an assert statement.
 
Alfred Kemety
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Robert, I only managed to get all Dan's questions on thread right, and had full, clear understanding for threads, wait(), notify(), notifyAll() after I read:
1- JLS - Chapter 17
You don't need to read the whole chapter, only the first 7 parts and MAINLY the last 3 parts (12,13,14)
2- API documentation on these methods, and the Thread class methods too (i.e.: sleep(), yield(), ... )
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic