Git Product home page Git Product logo

page_replacement_algorithms_demo.rs's Introduction

page_replacement_algorithms_demo.rs

A demonstration of page replacement algorithms using Rust, given the page reference string

This program currently supports 3 page replacement algorithms:

  • First-In-First-Out: Whichever page goes in first is replaced first.
  • Least Recently Used: Whichever page was least recently used is replaced first.
  • Optimal: Whichever page is not likely to be used in the future is replaced first.

Getting started

  1. You will need a Rust compiler to run these programs. To install Rust, go to https://www.rust-lang.org/ and follow the instructions given in the page.
  2. Rust uses a package manager known as Cargo (and each package is called a crate). Cargo generally comes pre-installed with Rust.
  3. Open your Terminal or Command Prompt, and type cargo. You should be able to see the text Rust's packgae manager along with the list of options.
  4. Either clone this repository using git clone https://github.com/BurraAbhishek/page_replacement_algorithms_demo.rs.git (requires a Git installation), or download it.
  5. Open the folder. You should be able to see the license, README, src directory (contains the source code) and Cargo.toml (Package dependency manager), and some other files. Open your terminal or command prompt in this folder.
  6. To run this program, type the command cargo run and follow the instructions given in the program.

page_replacement_algorithms_demo.rs's People

Contributors

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