user2434
user2434

Reputation: 6399

Sample Concurrency projects in Java

I finished reading the first seven chapters of Java Concurrency in Practice. Can you give me any ideas of sample projects so that my ideas will become solidified ?

Upvotes: 3

Views: 3127

Answers (2)

nsfyn55
nsfyn55

Reputation: 15353

This guy has a great set of tutorials on concurrency. jenkov tutorials

One interesting exercise try to create a "fair" lock using nothing but the simplest java language constructs. It allows you to become intimately familiar with all the paranoia inducing aspects of threads(race conditions, missed signals, etc.) and helps us come to terms with why the prospect of writing multi-threaded applications keep me up at night.

Upvotes: 1

Pintobean77
Pintobean77

Reputation: 1415

How about implementing your own 'thread safe' list and then making multiple threads add, get, and remove elements from it? Liberal use of System.out would show you just how interesting it can get when multiple threads work on the same data structure.

Upvotes: 1

Related Questions