joebuild
joebuild

Reputation: 544

Multi-threaded Java Application on a Cluster?

I have a multi-threaded java application for some research simulations. The lab I am working in has a large linux cluster, as well as a bunch of personal computers. I am a grad student, and have been programming in java for a long time, but I'm not very familiar with clusters. If I run my application on the cluster, will it be able to allocate the various threads to the different nodes? I am assuming this is not the case.. what is the best way to do this? I have seen Terracotta, Hadoop and Jini from doing some google searches, but it is unclear to me how they differ and which option (maybe none of the ones mentioned here) is best? I would like to avoid doing client/server programming, and if there exists a software solution which would be able to allocate the threads created by my program - that would be best. Thanks, Joe

Upvotes: 2

Views: 1452

Answers (2)

Lolo
Lolo

Reputation: 4347

If you google "java grid computing" you will find some great frameworks that will do what you need.

Upvotes: 0

Peter Lawrey
Peter Lawrey

Reputation: 533442

For a simple interface for distrubted compting I would suggest you try Hazelcast. This has distributed Queue, Executors and others. You can just add tasks and they will be performed on the next available CPU where-ever and coding it is much the same as on one computer. (Same interfaces)

Upvotes: 2

Related Questions