Solved

how to partition data between rmi servers?

Posted on 2004-03-20
3
184 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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 …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now