/Visualization-of-CPU-Scheduling-Algorithms

Visualization of First Come First Serve and Priority Based CPU Scheduling Algorithms.

Primary LanguageCMIT LicenseMIT

Visualization of CPU Scheduling Algorithms

##Uses [graphics.h] (http://www.programmingsimplified.com/c/graphics.h)

##Instructions To use this code you need to install some packages and libraries which will enable you to compile graphics.h program in Linux.

  1. sudo apt-get install build-essential

  2. sudo apt-get install libsdl-image1.2 libsdl-image1.2-dev guile-1.8 guile-1.8-dev libsdl1.2debian-all libart-2.0-dev libaudiofile-dev libesd0-dev libdirectfb-dev libdirectfb-extra libfreetype6-dev libxext-dev x11proto-xext-dev libfreetype6 libaa1 libaa1-dev libslang2-dev libasound2 libasound2-dev

  3. Download [libgraph] (http://download.savannah.gnu.org/releases/libgraph/libgraph-1.0.2.tar.gz).

     tar -xvzf libgraph-1.0.2
    
     cd libgraph-1.0.2
    
     ./configure
    
     sudo make
    
     sudo make install
    
     sudo cp /usr/local/lib/lingraph.* /usr/lib
    

##Compile and Run 0. Compile and run the source code files.

	 gcc generatepid.c struct.h graphics.c main.c -lgraph

	 ./a.out
  1. Enter the number of process and view how these CPU scheduling algorithm works. Everything will be genrated ran domly.

Bitdeli Badge