• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java multithreading exercies?

 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 1090
14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you find some exercises?

 
manish ghildiyal
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not really.

Manish
 
Ranch Hand
Posts: 172
Redhat Ruby C++
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
manish ghildiyal
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot Laun.

Manish
 
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Luan Cestari wrote: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



Nice one Luan.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://www.coderpanda.com/threading-tutorial-multi-threading-in-java/
is also useful to learn from basics
 
Ranch Hand
Posts: 449
Scala IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic