Giter Site home page Giter Site logo

prioritycachesimulator's Introduction

PriorityCacheSimulator

This is a simulator to test 6 different algorithms.

The idea is for a hardware priority value that decides how much cache space is allocated to a thread.

6 algorithm choices are provided:

  1. Static 25% each (Control, no priority)
  2. Need-based (Control, like dynamic but no priority)
  3. Basic Priority (First method, high priority takes as much as they want)
  4. Static Priority (Second method, high priority gets higher percentage)
  5. Modified Static Priority (Unused share of high priority can be used by other processes)
  6. Dynamic Priority (Final method: considers previous share, priority, and miss rate to calculate new share)

The important code resides in Form1.cs

How to use

1) Provide a .json file of Process objects.

One has been provided, but another could be generated:

  • Open the program

  • Click "Generate Inputs", another form will open

  • Write desired file name and number to generate

Whatever the desired .json is, put it in the filepath field in the main program

2) Select algorithm from radio list

3) Click "Simulate"

4) Results will be displayed in the large text box.

Further simulations will append to the text box so multiple results can be viewed at once.

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.