Code Monkey home page Code Monkey logo

bottleneck-server's Introduction

Machine Improvement Proposals

A simulation in C using queues and linked lists
written by: Kurt King 2015

I. Overview

Server 1 is a bottleneck and does many things. Its step 1 takes an average of 20 time units and its step 2 takes an average of 15 time units. It can only process one widget at a time. While a widget is on step 2, no widgets can be serviced on step 1.

Alternative A.

Add a new server (server 2) that only does "step 2" functions. Server 1 will then become a "step 1"-only server. This means widgets go to server 1 (for step 1) and then server 2 for step 2. Different widgets can be processed on both servers at the same time.

Alternative B.

Upgrade server 1. The upgrade will reduce the average processing time for step 1 from 20 tu to 15 tu. The step 2 time will not be changed. Server 1 is still processing both steps. While a widget is on step 2, no widgets can be serviced on step 1.

The downtime to reconfigure is expected to be the same for both alternatives so it isn't a factor.

II. File List


File Name File Description
simulation.h Header file - contains typedefs, constants, and function prototypes
simulation.c Bottleneck simulation functions
simulationDriver.c Driver file - contains main function and functions to handle input
p4ACinput.txt Input for running simulations A and C
p4Binput.txt Input for running simulation B
sim Executable produced when using makefile
Makefile Compiles and links appropriate files to create the executable to run the bottleneck simulation

III. General Purpose

This program takes widgets from a file and runs simulations on them. The output of the program shows the statistics for each simulation. Judging by the statistics, the user would be able to specify which simulation is the most efficient.

IV. Key Functions

coming soon

V. Important Typedefs

coming soon

VI. Input/Output

coming soon

VII. Makefile

There is a general Makefile for the simulation.

Once changes have been made to a file, simple run:
    $ make sim

This will create the executable sim in your current directory
Refer to running simulation to execute program

bottleneck-server's People

Contributors

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