?
Solved

how to partition data between rmi servers?

Posted on 2004-03-20
3
Medium Priority
?
191 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 200 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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
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 …
Suggested Courses
Course of the Month8 days, 10 hours left to enroll

764 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