Coder Social home page Coder Social logo

craig.3's Introduction

craig.3

CS4760 Assignment 3

This program is compiled using the make command. The executable that runs this program is named monitor. This program solves the producer consumer problem using the the dining philosopher problem and monitors. The dining phiolospher's problem is implmented in the monitor. Each process spawned from the parent either producer or consumer is considered a philospher. Before the critical section in both the producer and the concumer the philosopher process must go to the moniter and make sure it can eat and that the chopsticks on either side of that philosopher process is ok to be used. Each child process that is spawned from the parent either producer or consumer is run in an infinte loop. The child processes are only stoped by the time innterupt or the signal intrupt. When that inturpt happens all children are killed and shared memory and semaphore are unlinked and destoryed.

The problems encountered during this program were mainly in the concepts. It was hard to understand how to combine the idea of solving the producer consumer problem with monitors while also incorporating the dinning philosophers problem.

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.