GithubHelp home page GithubHelp logo

foundations_threading's Introduction

CSCI 5828 — Homework 3 — Fall 2015

In this repository, you will find the two versions of the broken producer-consumer program that is associated with Homework 3 for Prof. Anderson's CSCI 5828 class at the University of Colorado Boulder for the Fall 2015 semester.

Each of the broken directories has a README file that explains how to compile and run the code in that directory.

Your goal is to create a new version of the program that:

  • fixes the program so that it runs correctly
    • you may only modify the following files
      1. Consumer.java
      2. Producer.java
      3. ProductionLine.java
    • you may not modify the following files
      1. Main.java
      2. Monitor.java
      3. Product.java

You may certainly add println statements to this program to debug it. But, do not mess with the original println statements that appear in the program and remove any additional println statements that you added to the program before you submit it.

  • You are done when the following things are true of your new program
    1. The program exits cleanly to the command prompt.
    • That is, all threads shut down cleanly at the end of your program.
    1. Your program's output file finishes by printing out the numbers 0 to 199 inclusive. There can be no gaps in the numbers that are printed out.

This repository contains an example of the output produced by a correctly fixed version of this program.

foundations_threading's People

Contributors

kenbod avatar

Watchers

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