Solved

Re: Network protocols

Posted on 2011-03-14
5
399 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
  • 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 68

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupSumClump challenge 9 103
Java DateChooser? 3 29
Packet Tracer Router to Router 10 62
diffSum example 4 27
Hi there, This article summarizes what you need if you are going to set up your home or small business Network Attached Storage (NAS) to be accessible from the internet. Of course there are configuration differences based on your NAS or router ma…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

863 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

25 Experts available now in Live!

Get 1:1 Help Now