GithubHelp home page GithubHelp logo

hossammahmoudkhedr / cpu-scheduler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ccmurdoc/cpu-scheduler

0.0 0.0 0.0 1002 KB

CPU scheduling program. CPU Scheduler for: FCFS, SJF with preemption, RR (with specified time quantum), and Priority with preemption

C++ 100.00%

cpu-scheduler's Introduction

#CPU Scheduler for: FCFS, SJF with preemption, RR (with specified time quantum), and Priority with preemption
Instructions for CPU Scheduling
Authors: James Lopez
	 Chantal Murdock

Read these instructions carefully.

For FCFS, Preemptive SJF and Priority:

	1. FIRSTLY! Open datagen.cpp and run the program to generate random 
	   number of burst time and arrival time of each process.
	   The values are generated in a text file called datagen.txt.
	   
	2. If you want to do FCFS first, open FCFS.cpp and run the 
	   CPU scheduling for FCFS. The values are outputted in a
	   text file called FCFS_ouput.txt
	   
	3. If you want to do Preemptive SJF first, open SJF.cpp 
	   and run the CPU scheduling for Preemptive SJF. 
	   Since it has 10000 process, you have to wait like 5 mins to complete the run.
	   The values are outputted in a text file called SJF_ouput.txt
	
	4. If you want to do Preemptive Priority first, open Priority.cpp 
	   and run the CPU scheduling for Preemptive Priority.
	   Since it has 10000 process, you have to wait like 5 mins to complete the run.
	   The values are outputted in a text file called Prio_ouput.txt
	   
	Note: Since it has 10000 process, you have to wait like 5 mins to complete the run
		  for Preemptive SJF and Preemptive Priority.
	   
For Round Robin:

	1. FIRSTLY! Open datagenRR.cpp and run the program to generate random 
	   number of burst time and arrival time of each process.
	   The values are generated in a text file called datagenRR.txt.
	   
	Note: Since this algorithm takes a lot of time to process 100-10000 processes (It took hours and even days)
	      We only generate 15 processes (It only took 20-30 seconds.)
		  
	2. Open RoundRobin.cpp and run the CPU scheduling for Round Robin. 
	   The values are outputted in a text file called RR_ouput.txt
	   
	

cpu-scheduler's People

Contributors

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