Coder Social home page Coder Social logo

distributed-termination-detection's Introduction

Introduction and Problem Definition

  • In the context of Distributed Computing, no process or node has complete knowledge of the global state.
  • Therefore, determining if a distributed computation has terminated is a non-trivial problem.
  • We define global termination as the scenario where every process/node has locally terminated and there is no message in transit between any processes/nodes.
  • Termination detection is where a process or node must infer that the underlying computation has terminated.
  • In this particular project, we simulate a cell culture where cells may become infected as well as become immune to a virus. We have to determine if the culture has stabilized, i.e. all cells have become immune to the virus. The initial conditions are given such that this will eventually happen.

Algorithm

  • There are many algorithms for detecting termination. However, in this project, we implement a spanning-tree based termination detection algorithm that is described in the literature. Please refer to the detailed Problem Statement to learn more.

Implementation

  • We use MPI to simulate the whole system. MPI Processes will resemble cells in the culture
  • Each process maintains its own state. (Namely, in this case, color of the cell and other variables required for the algorithm).
  • Cell infections and immunizations are simulated by message passing between the processes
  • Algorithm detects termination and measures statistics such as number of control messages used.

To run the code

  • Install OpenMPI and make sure you have the mpic++ and mpirun shell commands available.
$ mpic++ <filename> (replace filename here)
$ mpirun -np <no. of processes> ./a.out (replace with no. of processes)

distributed-termination-detection's People

Contributors

sairamanareddy avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.