Solved

how to partition data between rmi servers?

Posted on 2004-03-20
3
189 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

719 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