jQuery in Action, 3rd edition
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes thread advice 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 advice" Watch "thread advice" New topic

thread advice

Marlene Miller
Ranch Hand

Joined: Mar 05, 2003
Posts: 1391
I have noticed recently quite a few incorrect answers given to people on the topic of threads.
I therefore would like to suggest to people with thread questions:
1. The Java Programming Language, Arnold Gosling Holmes
2. Concurrent Programming in Java, Doug Lea
(Read only the paragraphs pertaining to your questions.)
3. Learn to write little test programs to answer your questions.
If your question is really deep,
4. Java Language Specification Chapter 17
together with the Proposed Revision to Section 17.4 by Doug Lea
5. Wait Sets and Notification
These are the most reliable sources I know of. I personally would not completely trust any other source.
I regret to say, Do not completely trust the Java API for the Thread class or the Java Tutorial on Threads.
If you want to develop your intuition about threads, a moderately good book and easy to read is Java Thread Programming, Paul Hyde.
[ September 18, 2003: Message edited by: Marlene Miller ]
Lalitha Chandran
Ranch Hand

Joined: Jul 03, 2003
Posts: 92
Thanks a lot Marlene....... I have been looking for books on threads. And I think I am going to follow your suggestions.
Marlene Miller
Ranch Hand

Joined: Mar 05, 2003
Posts: 1391
Here is a post script to my post.
Doug Lea�s book Concurrent Programming in Java is *very advanced*. However since it is so well written and he is an authority on Java threads, it is my first choice as a *reference* for basic thread topics.
I am sure it is possible to pass the exam without reading a word of Lea�s book. But when people start debating whether some concept or class is correct, it�s good to have such an authority to refer to.
The Java Programming Language Chapter 10 is probably the best general discussion on threads, very trustworthy. This is the book for learning the concepts correctly, but it has few examples.
I learned about threads from Cay Horstmann�s Core Java volume II chapter 2. This chapter has several simple working examples. It is a good introduction.
I have read only parts of Paul Hyde�s Java Thread Programming and parts of Scott Oaks Java Threads. These books might be useful for people who have the time and need to know more about the basic concepts.
Dan Chisholm�s topic exams on threads are very helpful and trustworthy.
The 11 Whizlabs exams include a lot of really helpful and creative and imaginative thread questions. In my opinion, some of the answers and explanations are not correct. Don�t go there unless you know enough to spot errors. If only we can get those errors corrected, this would be a Great source of practical thread questions.
Marlene Miller
Ranch Hand

Joined: Mar 05, 2003
Posts: 1391
If you want to understand Java threads, you would do well to have a basic understanding of what a monitor is. Just look in your favorite book on operating systems. My favorite is Andrew Tanenbaum, Modern Operating Systems, Chapter 2 Processes and Threads.
[ September 30, 2003: Message edited by: Marlene Miller ]
I agree. Here's the link: http://aspose.com/file-tools
subject: thread advice
It's not a secret anymore!