News for hackers. Stuff that matters.

Parallel programming in Java

Hi All, I am in need of a parallel programming framework or tutorial. Can anyone of you please give me a direction in this regard. I am aware of a Fork-Join approach however it is scheduled to be release with JDK7...
( 2 comments | 2 points | on HN )
Re:Parallel programming in Java by mindcrime on Monday June 07, 2010 @11:03AM (#1410734)
Are you just trying to take advantage of multiple cores on one physical box, or are you looking to spread work out over a cluster?

If it's the former, JVM threads should be able to take advantage of multiple cores, IIRC. Just read Doug Lea's book on Java concurrency:

http://www.awprofessional.com/bookstore/product.asp?isbn=020...

If you want to go over a cluster, there are a few options. If your problem can be done in map/reduce fashion, there is Hadoop: http://hadoop.apache.org or if you want a traditional RCP styled approach (eg, MPI), there are Java bindings for MPI: http://aspen.ucs.indiana.edu/pss/HPJava/mpiJava.html

In either case, Doug's homepage is a great resource: http://gee.oswego.edu/~dl/index.html

and the HPJava page might be of interest as well:

http://www.hpjava.org/

Re:Parallel programming in Java by maxcach on Thursday June 10, 2010 @10:53AM (#1420263)
Hi, maybe you should have a look at Ateji Parallel extensions http://www.ateji.com/multicore/