views:

338

answers:

3

Hi, I want to study some good multi-threaded Java code. Could anyone please suggest some examples ? Is Apache web server a good pick ?

Thanks, Abhinav.

+8  A: 

I'd recommend you to have a look at this book. It covers almost everything about java and concurrency/multithreading, including coding principles and many examples.

PartlyCloudy
Thanks for the suggestion, I am currently studying from "The Art of Multiprocessor Programming". However, I would like to study some real world code also besides examples in books.
abhinav
What kind of application are you looking for? Multithreaded network servers, parallel computations, GUI interactions, etc.?
PartlyCloudy
I read some sections from Java Concurrency in Practice, its a very nice book to have. I was looking for some real world code that was built to handle large number of threads, maintain safety and perform well. So, maybe multithreaded network servers ?
abhinav
A: 

In the concurrency tutorial you find the aspects like

  • synchronization
  • deadlocks
  • as well as basic concepts

discussed. If you wan't to how this is used in a real application have look at Jackrabbit

stacker
Thanks, just checked out the source.
abhinav
A: 

Best tutorial about concurreny in Java ever

The Java Memory Model

Helper Method