CPU Scheduling Algorithms with simulation execution,Verbose mode

Your Task:

Given a set of processes to execute with CPU and I/O requirements, your CPU simulator should simulate the execution of these processes based on a given CPU scheduling policy. Your simulation should collect the following statistics: the CPU utilization (NOT CPU efficiency), the total time required to execute the set of processes, and the service time (or CPU time), I/O time, and turnaround time for each individual process.

Your simulation structure should be event-driven simulation, which is the most common simulation model. At any given time, the simulation is in a single state. The simulation state can ONLY change at event times, where an event is defined as an occurrence that MAY change the state of the system. Events in this CPU simulation are the following: process arrival and the transition of a process state (e.g., when an interrupt occurs due to a time slice, the process moves from running state to ready state).

Each event occurs at a specified time. Since the simulation state only changes at an event, the clock can be advanced to the next most recently scheduled event. (Thus the term next event simulation model.)

Events are scheduled via an event queue. The event queue is a sorted queue which contains "future" events; the queue is sorted by the time of these "future" events. The event queue is initialized to contain the arrival of the processes and the first occurrence of the timer interrupt. The main loop of the simulation consists of processing the next event, perhaps adding more future events in the queue as a result, advancing the clock, and so on until all processes terminate.

In the end, you should compare the following scheduling policy:

1. First Come First Serve

2. Shortest Job First, without preemption

3. Shortest Job First, or shortest-remaining-time-first; preemption

4. Round Robin, with the quantum 10.

5. Round Robin, with time quantum 50.

6. Round Robin, with time quantum 100.

Simulation Execution

Your simulation program will be invoked as:

sim [-d] [-v] [-a algorithm] < input_file

where -d stands for detailed information, -v stands for verbose mode, and -a stands for the execution of a given algorithm (only FCFS, SJF, SRTN, RR with time quantum 10, RR with time quantum 50, and RR with time quantum 100 should be acceptable input). You can assume only these flags will be used with your program, and that they will appear in the order listed. The output for the default mode (i.e., no flags), the detailed information mode, the verbose mode, and the algorithm mode is defined in the output format section. The -d, -v, and -a flags may be used separately or together.

Input Format

The simulator input includes the number of processes that require execution, the process switch overhead time (i.e., the number of time units required to switch to a new process), and, for each process, the arrival time and the number of CPU execution bursts the process requires; the CPU execution bursts are separated by time the process does I/O. You should assume an infinite number of I/O devices. In other words, processes do not need to wait to do I/O. Also, no overhead is associated with placing a process on, or removing a process from, an I/O device. Also, you should assume the processes listed in the input file will be in the order that the processes arrive. Since a process must exit from the system while in the executing state, the last task of a process is a CPU burst. All these simulation parameters are integers. Your simulator obtains these parameters from the input file, which is in the following format.

Skills: C Programming, C++ Programming, Java

See more: cpu simulation program, simulation routing algorithms using, program implement cpu scheduling algorithms, write program simulate shortest job cpu scheduling algorithms, simulation scheduling algorithm java, cpu scheduling algorithms visual basic, cpu simulation, simulation cpu scheduling algorithms java, cpu scheduling algorithms simulation using java, java cpu scheduling algorithms, define algorithm needed cpu simulation, cpu scheduling algorithms java, cpu scheduling algorithms simulation project rar, software write mq4, software write chip epson, useful software write book, software write web specs, free software write user guide, software write edid, free software write company profile, software write websites idea, software write book images, software write books, software write protection, free software write book

About the Employer:
( 0 reviews ) United States

Project ID: #14087550

7 freelancers are bidding on average $61 for this job


Hi I have a looked to your project. I'm sure I can complete this project. I am mastering c, c++; My price & period may be negotiable. We can discuss more details via chat. Thanks.

$25 USD in 1 day
(62 Reviews)

I, Jignesh Lakhani completed my masters from IIT Roorkee in Computer Engineering. I am having very good knowledge of C, C++, Java, Algorithm, Data Structure. I am having strong analytical power. I will complete your More

$50 USD in 1 day
(15 Reviews)

Hi Sir , i am java developer , i can make your CPU scheduling algorithms , i already made it many times for different purposes.. thank you

$25 USD in 1 day
(9 Reviews)
$250 USD in 2 days
(24 Reviews)

A multi-skilled, reliable & talented Academic & Research Writer with a proven ability to Write Academic Papers, Report Writing, Research Writing,proofreading,article writing ,Translations among all the world’s language More

$20 USD in 1 day
(1 Review)

I'm a good hardworking freelancer who seeks client satisfaction as first and foremost.I can assure you that i will complete the project on time with proper [url removed, login to view] please help me by giving this oppurtunity so that i More

$30 USD in 1 day
(0 Reviews)

A proposal has not yet been provided

$35 USD in 1 day
(0 Reviews)

Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I have More

$28 USD in 6 days
(0 Reviews)
$25 USD in 1 day
(0 Reviews)