Code Monkey home page Code Monkey logo

hemant-taneja's Projects

cpu-scheduling- icon cpu-scheduling-

The primary goal of this lab assignment is to understand various CPU scheduling algorithms, gain some experience building a simulator for CPU scheduling algorithm and to evaluate their performances. Requirements Programming language: You must use either C or C++ to develop your program. Running Environment: Your program should be compiled at CSEGRID and be able to be tested without errors. The implementation details Write a program to simulate a CPU scheduler which selects a process from a ready queue and executes the process by using the given scheduling algorithm, display its actives and evaluate its performance based on measurements such as average turn-around time, average waiting time, and total number of context switching. When a process is scheduled, the simulator will simply print what the process is running at what time, collecting data and producing Gantt Chart-like outputs. Specifications You have to implement FCFS (First Come First Serve), SRTF (Shortest Remaining Task First – preemptive), and RR (Round Robin) scheduling algorithms. Assumptions Use the following assumptions when you design and implement your CPU simulator. There is only one CPU All processes perform only CPU operations. All processes have the same priority. The newly arrived process is directly added to the back of the ready queue. We use only ready queue for this simulation. Context switching is done in 0 ms. Context switch is performed only when a current process is moved to the back of ready queue. All time are given milliseconds. Use FCFS policy for breaking the tie. Measurements and Evolution You program should collect the following information about each process: Time of completion Waiting time Turn around time No. of Context Switching You program should calculate the following information using the collected data: Average CPU burst time Average waiting time Average turn around time Average response time Total number of Context Switching performed Simulator Input Process information (assume a maximum of 100 processes) will be read from a text file. The information for each process will include the following fields: pid: a unique numeric process ID. arrival time: arrival time for a process in ms. CPU burst time: the CPU time requested by a processes

discord-clone icon discord-clone

A web-based Discord clone based on MERN stack using socket.io and WebRTC (attempt)

hangman icon hangman

This is the hangman game implemented in Reactjs

select-users icon select-users

UI Component to search, filter and multi select values from a dropdown

twitternews icon twitternews

This gets the latest hashtags on twitter india and shows the top news related to it.

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.