Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

good book for concurrency for beginner

 
David Spades
Ranch Hand
Posts: 348
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anybody know about a good book for concurrency in java? I'm not a beginner in Java, just in java concurrency. tried Java Concurrency in Practice, but I think it's a bit too advanced for me now. thanks
 
Raymond Tong
Ranch Hand
Posts: 255
2
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.infoq.com/presentations/java-concurrent-animation
http://sourceforge.net/projects/javaconcurrenta/

Watch the video while running the animated program may help you understand.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The two listed in the http://www.coderanch.com/how-to/java/ThreadsAndSynchronizationFaq are the standard books.
 
Anayonkar Shivalkar
Bartender
Posts: 1557
5
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Spades wrote:Does anybody know about a good book for concurrency in java? I'm not a beginner in Java, just in java concurrency. tried Java Concurrency in Practice, but I think it's a bit too advanced for me now. thanks

If you've already done with Henry Wong's book (follow the link in Ulf's post), then 'Taming Java Threads' by Holub is also a good read.

Personally, most of the times I refer Java Concurrency in Practice and JavaDocs.
 
Chan Ag
Rancher
Posts: 1089
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I absolutely loved Java Threads, Edition 3.
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I feel your pain. I love Henry's book, but the reality is that concurrency in Java is a royal PITA. It gets hard very quickly because Java makes the programmer do too much work.

For applications that require a ton of synchronization, if your name is not Henry, I'd look at Scala.

 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pat Farrell wrote:I feel your pain. I love Henry's book, but the reality is that concurrency in Java is a royal PITA. It gets hard very quickly because Java makes the programmer do too much work.


I'd definitely agree with this part. Java concurrency is far too low-level -- it looks easy because the tools are very simple but applying them is far too difficult for the average programmer. But since Java 5 came along with higher-level tools like ExecutorService, I've been using them exclusively. If you're doing something which is intended to produce something useful in Java, that's what you should do. But I guess as long as we have certification exams which ask questions about wait and notify, we're going to have people wasting their time learning how to use those things.

I was thinking that wait and notify ought to be deprecated, but presumably they are used in the java.util.concurrent classes to implement the useful tools so that couldn't really happen. Perhaps we need another annotation meaning "Don't mess with this method unless you know exactly what you're doing".
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote: But I guess as long as we have certification exams which ask questions about wait and notify, we're going to have people wasting their time learning how to use those things...... Perhaps we need another annotation meaning "Don't mess with this method unless you know exactly what you're doing".


Java has a lot of stuff that may have been a good idea in 1997, but is no longer useful. Applets is another area that the cert tests make people waste time on. Scriptlets in JSP pages, yet another.

I like your "@guruOnly" annotation. A lot of stuff is valuable as a low level tool, but should not be exposed to, let alone used by, 95% of all Java programmers.
 
Chan Ag
Rancher
Posts: 1089
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After reading Java Threads, I wanted to read all of Henry's and Scott Oak's books. I even googled what JINI meant. :-)
I guessed that 'JINI in a nutshell' was going to be too advanced for me.

So just now, I chanced upon [URL=http://shop.oreilly.com/product/0636920028499.do#tab_03_0]this book by Scott Oaks
[/URL]. I so want to read this book. But I have two other books to complete before that.



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic