Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java multithreading exercies?

 
manish ghildiyal
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Where can one get good exercises for multithreading, covering from basics to advanced levels?
Google search doesn't throw rich list.

Manish
 
Chan Ag
Rancher
Posts: 1089
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you find some exercises?

 
manish ghildiyal
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not really.

Manish
 
manish ghildiyal
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Laun.

Manish
 
Naresh Chaurasia
Ranch Hand
Posts: 361
 
Bijoy Joseph
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.coderpanda.com/threading-tutorial-multi-threading-in-java/
is also useful to learn from basics
 
Muhammad Khojaye
Ranch Hand
Posts: 449
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
manish ghildiyal wrote:Hi,Where can one get good exercises for multithreading, covering from basics to advanced levels?Google search doesn't throw rich list.Manish

I am not sure about the excercises but If you want to understand about different scenarios where we can go wrong, I recommend Java Concurrency in Practice
 
Ivan Korhner
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree about Java Concurrency in Practice, after reading it you will have a great understanding of possible race conditions, available classes and some of the patterns you can use in Java.
After that, you can study others people code, try to modify it or even rewrite. For a quick exercise check this: http://korhner.github.io/java/multithreading/java-multithreading-expensive-pool/

It's an example of how we can quickly implement a complex multithreaded pattern with Java concurrent classes, you could implement the same using different approaches (low level locks, other concurrent classes).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic