Giter Club home page Giter Club logo

therestaurant's Introduction

The Restaurant

Parallel and Distributed Implementations of 'The Restaurant Problem'

Description

This project allows the deployment of a simulated restaurant with either parallel or distributed execution of all entities. The restaurant consist of 3 areas:

  • the Table Area
  • the Bar Area
  • the Kitchen Area

There are also 3 types of entities:

  • the Students, which are restaurant clients
  • the Waiter
  • the Chef

Repository Structure

/parallel - initial parallel version, using Java Threads and Monitors.

/distributed - distributed version, using Java Sockets and Stubs.

/distributed-xml - truly distributed version, multiple machine deployment ready.

/diagrams - interaction and lifecycle diagrams for each implementation.

The Parallel Restaurant

The parallel version resorts to Threading and access to Shared Regions through Monitors. A single process is deployed and a thread is assigned to each entity instance. Each area consists of a shared region and there is a general repository to control entity status and log activity.

This version is appropriate to explain in a simple and intuitive way how the restaurant works and how each entity must behave in order for the simulation to remain consistent. On the diagrams directory we provide some visual representations that aid in understanding each entity's lifecycle and the interactions that occur.

The Distributed Restaurant

The distributed version resorts to multiple java processes that communicate with each other through well established interfaces and predefined sockets. Each shared region has a client side and a server side, while entities only need a client side and the general repository a server side. Visual aids are also provided.

The Distributed XML Restaurant

What differs from the distributed version is the fact that, in this implementation, the processes run on separate machines while still communicating with each other. A shell script is provided for propagation among machines and visual aids are once again made available for further analysis.

Authors

The authors of this repository are Filipe Pires and Isaac dos Anjos, and the project was developed for the Distributed Computation Course of the licenciate's degree in Informatics Engineering of the University of Aveiro.

For further information, please contact us at [email protected].

therestaurant's People

Contributors

filipepires98 avatar idanjos avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

shahriarkhan099

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.