Distributed algorithms in Java

  • Authors:
  • Mordechai Ben-Ari

  • Affiliations:
  • Department of Science Teaching, Weizmann Institute of Science, Rehovot 76100 Israel

  • Venue:
  • Proceedings of the 2nd conference on Integrating technology into computer science education
  • Year:
  • 1997

Quantified Score

Hi-index 0.02

Visualization

Abstract

We show how Java can be used to develop portable implementations of distributed algorithms for class demonstrations and laboratory exploration. The programs can be used in two modes: (a) TCP/IP communications over a net, or (b) applet-to-applet communications on a single HTML page. The latter mode is important during program development and can also be used if your lab malfunctions or for homework assignments. Programs were written for four distributed algorithms: Byzantine generals, Ricart-Agrawala mutual exclusion, Dijkstra-Scholten termination and Chandy-Lamport snapshots.