Solved

Re: Network protocols

Posted on 2011-03-14
5
406 Views
Last Modified: 2012-05-11
Hi guys. i am implementing a bully algorithm ( leader election in distributed systems).  i have managed to implement the process in java using four different classes. and it works

My question is.

i want to put each process on different computers. so i would i have four computers serving as a server.

 How can i connect four computers together to form a network. using windows

if i could connect this computers together then i can run each processes on each machines and get them to talk to each other.

i think it can be done using sockets?/  


pls can any suggestions would help

thanks
0
Comment
Question by:peterade
[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
  • 2
5 Comments
 
LVL 47

Expert Comment

by:for_yan
ID: 35129084
Well, one of the options would be Java Remote Method Invocation (Java RMI)
which is very efgfective and simple to implement solution for distributed computing in Java
0
 
LVL 47

Accepted Solution

by:
for_yan earned 250 total points
ID: 35129119

These are some RMI links:

http://yama-linux.cc.kagoshima-u.ac.jp/~yamanoue/researches/java/rmi-ex2/

http://www.eg.bucknell.edu/~cs379/DistributedSystems/rmi_tut.html

http://download.oracle.com/javase/1.5.0/docs/guide/rmi/hello/hello-world.html

You can of course use different other solutions, like web services, etc.
In my experience however RMI was the simplest to implement and in many senses
it is more effective than other ways, especially if all of your interacting processes
are implemented in Java

0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 250 total points
ID: 35130076
You might find broacasting/multicasting makes this easier:

http://download.oracle.com/javase/tutorial/networking/datagrams/broadcasting.html
0
 
LVL 70

Expert Comment

by:Qlemo
ID: 35360919
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

717 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