GithubHelp home page GithubHelp logo

messagequeue's Introduction

Main Project:

  • Create 2 Receivers and 3 Senders where the Senders are sending data to the Receivers.
  • The 5 Programs are running concurrently on the same machine.

Jobs

Sender

  • Create a random 32 bit number generator for each of the senders
  • Assign and store the values 251, 257, or 997 to the respective project where each of the senders will behave differently
  • Sender #997
    • Sends to who:
      • Sends each event to ALL RECEIVERS
    • Requirements:
      • Requires acknowledgement for each message from BOTH RECEIVERS before it continues execution
    • Termination cause:
      • Terminates when it gets/observes a RANDOM NUMBER SMALLER THAN 100
  • Sender #251
    • Sends to who:
      • Sends each event to only ONE RECEIVER
    • Requirements:
      • Does not accept any acknowledgement messages
    • Termination cause:
      • Terminates on a “KILL” COMMAND FROM A SEPARATE TERMINAL
      • The above will be supplied by the professor as a patch code to be integrated with this sender
  • Sender #257
    • Sends to who:
      • Sends each event to only ONE RECEIVER
    • Requirements:
      • Does not accept any acknowledgement messages
    • Termination cause:
      • Terminates when ITS RECEIVER STOPS RECEIVING EVENT NOTIFICATIONS

Receiver

  • Each receiver repeatedly gets a message and displays the value and the Sender’s identity
  • Receiver #1
    • Accepts from who:
      • Only accepts messages from 251 AND 997 SENDERS
    • Termination cause:
      • Terminates after BOTH OF ITS SENDERS HAVE TERMINATED
  • Receiver #2
    • Accepts from who:
      • Only accepts messages from 257 AND 997 SENDERS
    • Termination cause:
      • Terminates after it has RECEIVED A TOTAL OF 5000 MESSAGES

messagequeue's People

Contributors

happylyfe123 avatar

Watchers

 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.