Two Laptop Bag
The moose likes Threads and Synchronization and the fly likes Java multithreading exercies? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Java multithreading exercies?" Watch "Java multithreading exercies?" New topic
Author

Java multithreading exercies?

manish ghildiyal
Ranch Hand

Joined: Jan 12, 2013
Posts: 136
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

Joined: Sep 06, 2012
Posts: 1073
    
  15
Did you find some exercises?

manish ghildiyal
Ranch Hand

Joined: Jan 12, 2013
Posts: 136
Not really.

Manish
Luan Cestari
Ranch Hand

Joined: Feb 07, 2010
Posts: 163

You can master the Concurrent Tutorial on Oracle site ( http://docs.oracle.com/javase/tutorial/essential/concurrency/ ) and you could make all the examples of the following tutorial as well:

http://www.javaworld.com/javaworld/jw-06-2013/130619-j101-java-concurrency-part-1.html
http://tutorials.jenkov.com/java-concurrency/index.html
http://www.obsidianscheduler.com/blog/category/concurrency/
http://www.jconcurrent.com/Overview.html
http://www.baptiste-wicht.com/series/java-concurrency-tutorial/

Regards =)
Luan


Please, visit me for some cool tech post at www.ourdailycodes.com
manish ghildiyal
Ranch Hand

Joined: Jan 12, 2013
Posts: 136
Thanks a lot Laun.

Manish
Naresh Chaurasia
Ranch Hand

Joined: May 18, 2005
Posts: 361


Nice one Luan.


SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
Bijoy Joseph
Greenhorn

Joined: May 22, 2013
Posts: 4
http://www.coderpanda.com/threading-tutorial-multi-threading-in-java/
is also useful to learn from basics
Muhammad Khojaye
Ranch Hand

Joined: Apr 12, 2009
Posts: 449

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


http://muhammadkhojaye.blogspot.com/
Ivan Korhner
Greenhorn

Joined: Jan 11, 2015
Posts: 6
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).


Visit my blog: http://korhner.github.io/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java multithreading exercies?