I am developing an algorithm to find out a fraud-detecting system using a math formula. I need to work the program in different computer. How can I do that in Java? How can I do parallel programing in java? using RMI? or any other method? can u guys give me a code sample?
1 Answer
First figure out how to split your algorithm so that it can be divided and conquered in parallel. That's the hard part.
There are probably frameworks for doing the rest. For example, Hazelcast claims to have an implementation of java.util.concurrent.ExecutorService that works over a cluster. Implement your program using a simple executor service first and you can probably drop in that framework, configure it, and away you go.
9 Comments
Mark Peters
@Binu you can do it using RMI, and some frameworks might use RMI, but even RMI might be more low-level than you need to go. An example isn't really well-suited to SO though IMO, it's too complex to put in an answer here.
Mark Peters
@Binu: Are you seriously asking if you can use a parallel computing framework for parallel computing? Yes, I'd imagine you could. You know better than me, it's your project.
|