*
The moose likes Threads and Synchronization and the fly likes good book for concurrency for beginner Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "good book for concurrency for beginner" Watch "good book for concurrency for beginner" New topic
Author

good book for concurrency for beginner

David Spades
Ranch Hand

Joined: Feb 01, 2014
Posts: 194
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

Joined: Aug 15, 2010
Posts: 230
    
    2

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
Marshal

Joined: Mar 22, 2005
Posts: 41186
    
  45
The two listed in the http://www.coderanch.com/how-to/java/ThreadsAndSynchronizationFaq are the standard books.


Ping & DNS - my free Android networking tools app
Anayonkar Shivalkar
Bartender

Joined: Dec 08, 2010
Posts: 1502
    
    5

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.


Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
Chan Ag
Bartender

Joined: Sep 06, 2012
Posts: 1000
    
  16
I absolutely loved Java Threads, Edition 3.
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4646
    
    5

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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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

Joined: Aug 11, 2007
Posts: 4646
    
    5

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
Bartender

Joined: Sep 06, 2012
Posts: 1000
    
  16
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.



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: good book for concurrency for beginner
 
Similar Threads
Beginning Java book recommendations
Thread use
Need information about Thread in java
Comments on "Head First SQL"
JSP