Giter VIP home page Giter VIP logo

so5-dining-philosophers's Introduction

This repository contains several implementations of solutions for "Dining Philosophers" problem. These solutions are built by using Actor and CSP models on top of SObjectizer framework.

How To Obtain And Try?

Prerequisites

Since Jan 2020 a compiler with support of C++17 is required. A C++14 version can be found under the tag 20190129.

How To Obtain?

This repository contains only source codes of the examples. SObjectizer's source code is not included into the repository. There are two ways to get the examples and all necessary dependencies.

Download The Full Archive

There is a Releases section. It contains archives with all source codes (it means that an archive contains sources of the examples and sources of all necessary subprojects). The simpliest way is to download a corresponding archive, unpack it, go into so5-dining-philosophers/dev, then compile and run.

Use MxxRu::externals

It this case you need to have Ruby + MxxRu + various utilities which every Linux/FreeBSD/macOS-developer usually have (like git, tar, unzip and stuff like that). Then:

  1. Install Ruby, RubyGems and Rake (usually RubyGems is installed with Ruby but sometimes you have to install it separatelly).
  2. Install MxxRu: gem install Mxx_ru
  3. Do git clone: git clone https://github.com/Stiffstream/so5-dining-philosophers
  4. Go into appropriate folder: cd so5-dining-philosophers
  5. Run command mxxruexternals
  6. Wait while add dependencies will be downloaded.

Then go to dev subfolder, compile and run.

How To Try?

Building With CMake

A well known chain of actions:

cd so5-dining-philosophers/dev
mkdir cmake_build
cd cmake_build
cmake -DCMAKE_INSTALL_PREFIX=target -DCMAKE_BUILD_TYPE=release ..
cmake --build . --config Release
cmake --build . --config Release --target test

Note that on Windows the last command can looks like:

cmake --build . --config Release --target run_tests

Building With MxxRu

The following chain of actions is necessary for building with MxxRu:

cd so5-dining-philosophers/dev
ruby build.rb

so5-dining-philosophers's People

Contributors

eao197 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.