Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find some good examples to learn the basics of threading? [closed]

I am at the end of my first year doing computer science and want to mess around with something basic. I want to use threads so I can learn.

What are some good examples to learn from?

like image 999
user108110 Avatar asked May 27 '09 18:05

user108110


2 Answers

You should try the java tutorials from Sun on concurrency.

like image 52
z - Avatar answered Nov 14 '22 23:11

z -


I recommend the book Concurrent Programming in Java: Design Principles and Patterns by Doug Lea. Doug Lea was one of my professors at SUNY Oswego - great professor, brilliant man. The book is excellent and gives you a ton of great information on writing good multithreaded code in Java.

Oh yeah, and Doug Lea wrote most of java.util.concurrent. So he's a pretty good authority on the subject ;-)

like image 32
Rob Avatar answered Nov 14 '22 22:11

Rob