subject

MLFQ CPU scheduler Code and Report Project objective: To learn more about OS CPU scheduling through a hands-on simulation programming experience. To simulate, compare, and evaluate CPU scheduling algorithms using a consistent set of data. Directions The following information should be included in your document, numbered and in order: Names: Date: Language used: 1. Provide clear instructions on how to compile, build, and run the simulator (this will indicate that the application has been tested and works on the engineering student desktop) 2. Introduction 3. Insert one table that includes the entire simulation results for CPU Utilization, Response Time (RT), Waiting Time (WT), Turnaround Time (TT) PER PROCESS and Averages for FCFS (710 time units) and SJF (810 time units) and MLFQ (759time units) 4. Answer the following questions in full sentences with a brief explanation, IN YOUR OWN WORDS: A. Which algorithm (MLFQ, FCFS, or SJF) has the best CPU utilization? B. Which algorithm (MLFQ, FCFS, or SJF) has the worst CPU utilization? C. How many context switches are in the simulation of MLFQ, how does that compare with the number of context switches for FCFS and SJF? D. Which algorithm (MLFQ, FCFS, or SJF) has the lowest average waiting time? E. Which algorithm (MLFQ, FCFS, or SJF) has the lowest average response time? F. Which algorithm (MLFQ, FCFS, or SJF) has the lowest average turnaround time? G. How well did the results match your prediction from the Module 6 assignment? 5. Insert a partial or complete Gantt chart for MLFQ. (NOTE: IF YOU DID NOT GET YOUR CODE TO WORK CORRECTLY, OR YOUR SIMULATOR DOES NOT PRODUCE THE CORRECT OUTPUT YOU MUST COMPLETE AND SUBMIT A FULL GANTT CHART IN THIS REPORT - DO NOT INSERT MY GANTT CHART, CREATE YOUR OWN) 6. Insert the calculated results that were produced by the simulation 7. Insert the MLFQ Program Output. Algorithms and data: 1. FCFS non preemptive 2. MLFQ Multilevel Feedback Queue (pre-emptive - absolute priority in higher queues) Queue 1 uses RR scheduling with Tq = 6 Queue 2 uses RR scheduling with Tq = 12 Queue 3 uses FCFS All processes enter first queue 1. If time quantum (Tq) expires before CPU burst is complete, the process is downgraded to next lower priority queue. Processes are not downgraded when preempted by a higher queue level process. Once a process has been downgraded, it will not be upgraded. Assumptions: 1. All processes are activated at time 0. 2. Assume that no process waits on I/O devices. 3. After completing an I/O event, a process is transferred to the ready queue. 4. Waiting time is accumulated while a process waits in the ready queue. 5. Turnaround time is a total of (Waiting time) + (CPU burst time) +(I/O time).6. Response time is the first measure of waiting time from arrival at time 0 until the first time on the CPU Process Data: process goes {CPU burst, I/O time, CPU burst, I/O time, , last CPU burst} P1 {6, 21, 9, 28, 5, 26, 4, 22, 3, 41, 6, 45, 4, 27, 8, 27, 3} P2 {19, 48, 16, 32, 17, 29, 6, 44, 8, 34, 21, 34, 19, 39, 10, 31, 7} P3 {12, 14, 6, 21, 3, 29, 7, 45, 8, 54, 11, 44, 9} P4 {11, 45, 5, 41, 6, 45, 8, 51, 4, 61, 13, 54, 11, 61, 10} P5 {16, 22, 15, 21, 12, 31, 14, 26, 13, 31, 16, 18, 12, 21, 10, 33, 11} P6 {20, 31, 22, 30, 25, 29, 11, 44, 17, 34, 18, 31, 6, 22, 16} P7 {3, 44, 7, 24, 6, 34, 5, 54, 4, 24, 7, 44, 6, 54, 5, 21, 6, 43, 4} P8 {15, 50, 4, 23, 11, 31, 4, 31, 3, 47, 5, 21, 8, 31, 6, 44, 9}

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 12:50, tommy4260
Which syntax error in programming is unlikely to be highlighted by a compiler or an interpreter? a variable name misspelling a missing space a comma in place of a period a missing closing quotation mark
Answers: 1
image
Computers and Technology, 23.06.2019 17:30, kenyasutton10
What are the most commonly found items in the trash according to the municipal solid waste report?
Answers: 1
image
Computers and Technology, 24.06.2019 02:00, ishmael9332
How are we able to create photographs differently than 100 years ago? explain your answer in relation to your photograph you selected.
Answers: 1
image
Computers and Technology, 24.06.2019 14:40, drecooks713
Create a function (prob3_6) that will do the following: input a positive scalar integer x. if x is odd, multiply it by 3 and add 1. if the given x is even, divide it by 2. repeat this rule on the new value until you get 1, if ever. your program will output how many operations it had to perform to get to 1 and the largest number along the way. for example, start with the number 3: because 3 is odd, we multiply by 3 and add 1 giving us 10. 10 is even so we divide it by 2, giving us 5. 5 is odd so we multiply by 3 and add one, giving us 16. we divide 16 (even) by two giving 8. we divide 8 (even) by two giving 4. we divide 4 (even) by two giving 2. we divide 2 (even) by 2 to give us 1. once we have one, we stop. this example took seven operations to get to one. the largest number we had along the way was 16. every value of n that anyone has ever checked eventually leads to 1, but it is an open mathematical problem (known as the collatz conjectureopens in new tab) whether every value of n eventually leads to 1. your program should include a while loop and an if-statement.
Answers: 3
You know the right answer?
MLFQ CPU scheduler Code and Report Project objective: To learn more about OS CPU scheduling through...

Questions in other subjects:

Konu
Mathematics, 24.03.2020 02:30