Solved

how to partition data between rmi servers?

Posted on 2004-03-20
3
187 Views
Last Modified: 2010-03-31
Hi!

Basically the rmiClient has a list of unsorted integers
say...
3
56
1
2
4
3

This is then sent to 1 to 4 RmiServers depending on the size of data where these rservers take care of both partitioning the data and the merge sorting of the integers and send it back to the rmiClient....
The problem is I dont want to do the patitioning on the client as that would be easy.....so how do I partition the data
on the Rmiservers correctly using the parallel processing...I should maybe mention that the rmiServers are each running on a seperate thread.
I think I should use some sort of recursion just by instinct....but not sure... can somebody help me with this...

Cheers
0
Comment
Question by:scream_18m
  • 3
3 Comments
 
LVL 2

Expert Comment

by:Thunder_scream
ID: 10645426
I just need some guidence on the actual approch no code...required
cheers
0
 
LVL 2

Expert Comment

by:Thunder_scream
ID: 10645431
Is that what you mean?..
0
 
LVL 2

Accepted Solution

by:
Thunder_scream earned 50 total points
ID: 10645458
Try the following...

   send your data to one Rmiserver and let him decide weather he needs to partition or not ...if the data is big then recursivly extract
  a partiton and open another rmiserver....sort on both servers..and recursively close the servers...

e.g.   you have say
3
56
1
2
4
3

the first Rmiserver takes the data , all of it..
and suppose it knows that it can not handle more than 3 numbers
it takes the first three numbers and opens another server
they both mergesort ..and merge their result
and the first rmiserver sends back the result .

try this though its not quite parallel processing...
cheers
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
starter POM and spring-boot-starter,  spring-boot-web 2 59
custom annotations 9 39
netstat -ano | find "8000" and taskkill /f /pid 2984 3 58
going to wrong jsp page 2 22
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question