This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Misprint in Andrw's Book Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "Misprint in Andrw Watch "Misprint in Andrw New topic
Author

Misprint in Andrw's Book

Animesh Saxena
Ranch Hand

Joined: Jan 15, 2006
Posts: 62
I just noticed a small mistake in Andrew's book. On page 99 in threading chapter. (Deadlock Example)

in synchronized code...it should be synchronized(lockA)
similarly synchronized(lockB)
....
if I am wrong please let me know!???


Animesh Saxena<br /> <br />Open Source Developer
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Good catch! But it's already on theCorrections Page on the Apress site.
[ April 01, 2006: Message edited by: Barry Gaunt ]

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Misprint in Andrw's Book
 
Similar Threads
Thread synchronization
mistake in andrew's book
wait() releases all locks?
Wait question from K&B threads chapter
Avoiding deadlock situations in java