wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Thread Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Thread Question" Watch "Thread Question" New topic
Author

Thread Question

Robert Keyes
Greenhorn

Joined: Nov 01, 2002
Posts: 2
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

Joined: Oct 31, 2002
Posts: 108
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


SCJP 1.4<p>Wingardium Leviosa!!
Jose Botella
Ranch Hand

Joined: Jul 03, 2001
Posts: 2120
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.


SCJP2. Please Indent your code using UBB Code
Robert Keyes
Greenhorn

Joined: Nov 01, 2002
Posts: 2
Thanks for the welcome and the links.
Dan Chisholm
Ranch Hand

Joined: Jul 02, 2002
Posts: 1865
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.


Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>
Alfred Kemety
Ranch Hand

Joined: Aug 14, 2002
Posts: 279
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(), ... )


Alfred Raouf - Egypt - SCJP 1.4<br />Kemety.equals(Egyptian) // returns true
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Thread Question
 
Similar Threads
Locking Question
Free SCBCD Exam Simulators
My experience of getting through the exam.
Designing a Java program
Controlling listeners