GithubHelp home page GithubHelp logo

santa's Introduction

Implement a famous synchronization problem in Java for Operating Systems.

Santa Claus sleeps in his shop at the North Pole and can only be woken by either: • All nine reindeer being back from their vacation in the South Pacific or • Some of the elves having difficulties making toys. To allow Santa to get some sleep, the elves can only wake him when three of them are having problems.
When three elves are having their problems solved, any other elves wishing to visit Santa must wait for those elves to return.
It is assumed that the reindeer do not want to leave the tropics, and therefore stay there until the last possible moment – they only return in December.
The last reindeer to arrive must get Santa while the others wait in a warming hut before being harnessed to the sleigh.

The goal is to:

  • Understand how to implement deferred termination of threads from scratch
  • Learn how to use semaphores

santa's People

Contributors

shivanikumar1 avatar

Watchers

 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.