Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java concurrency assignments [closed]

I am Java EE developer, and I want to get skills on concurrency development.
Could you provide me some assignments, ideas, or other - just for learning and training concurrency programming?

like image 232
dev Avatar asked Jul 20 '26 01:07

dev


2 Answers

There's a brilliant book about Java concurrency called "Java Concurrency in Practice". I think this is the best starting point for diving deep into advanced concurrency.

Java Concurrency in Practice (Amazon)

like image 79
Juriy Avatar answered Jul 22 '26 14:07

Juriy


To start with just start coding to get an idea of some of the problems that may arise.

To get you started try writing the following:

  1. How would you implement a simple blocking queue?
  2. How do you stop a thread?
  3. How would you ensure only a single thread can read and write to a collection at a time?
  4. What would happen if you modify a collection while another thread is iterating over it.
  5. etc, etc

Just go online and maybe do a search for interview questions on concurrency.

like image 42
Karl Avatar answered Jul 22 '26 16:07

Karl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!