GithubHelp home page GithubHelp logo

deflaimun / reader-writer-problem Goto Github PK

View Code? Open in Web Editor NEW

This project forked from igormartire/reader-writer-problem

0.0 1.0 0.0 7 KB

Implementation of the three readers–writers problem in Java with RMI.

Makefile 8.66% Java 91.34%

reader-writer-problem's Introduction

Readers-writers problem

How to run

make build
make start p=r                  # starts RMI registry and server using ReadersPreferencePolicy
                                # other options are p=w for WritersPreferencePolicy
                                # and p=n for NoPreferencePolicy

make client fk=1 ct=asdf l=1    # writes "asdf" in resource1.txt, taking 1 second
make client fk=1 l=2            # reads from resource1.txt, taking 2 seconds
make client fk=2 ct=fdsa l=3    # writes "fdsa" in resource2.txt taking 3 seconds

make test                       # automatically create some clients

make stop                       # kill RMI registry and server
make clean                      # removes build folder and *.txt files

References:

reader-writer-problem's People

Contributors

deflaimun avatar igormartire avatar

Watchers

James Cloos 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.