?
Solved

Re: Network protocols

Posted on 2011-03-14
5
Medium Priority
?
411 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 1000 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 1000 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

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…
#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
This video teaches viewers about errors in exception handling.
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…
Suggested Courses
Course of the Month14 days, 20 hours left to enroll

771 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