2819305_1_hw3-cs3600.pdf

# 1 α 0 and τ 0 150 milliseconds 2 α 099 and τ 0

• Homework Help
• 2

This preview shows page 2 out of 2 pages.

1) α = 0 and τ 0 = 150 milliseconds ___________________________ 2) α = 0.99 and τ 0 = 150 milliseconds ___________________________ Problem E. Consider the following set of processes, with the length of the CPU burst given in milliseconds, the processes are assumed to have arrived in the order P 1 , P 2 , P 3 , P 4 , P 5 , all at time 0. Process Burst Time Priority P 1 5 4 P 2 3 1 P 3 1 2 P 4 7 2 P 5 4 3 a. Draw four Gantt charts that illustrate the execution of these processes using the following scheduling algorithms: FCFS , SJF , nonpreemptive priority (a larger priority number implies a higher priority), and RR (quantum = 2). b. What is the turnaround time of each process for each of the scheduling algorithms in part a? c. What is the waiting time of each process for each of these scheduling algorithms? (hint: if a running process is preempted and sent back to the ready queue to wait again, new waiting time(s) must be added to the initial waiting time before it runs the first time.) d. Which of the algorithms results in the minimum average waiting time (over all processes)? Problem F . Consider the following set of processes, with the length of the CPU burst given in milliseconds, (hint: for questions b, c, d, and e as below, NOT all processes arrive at 0 and the turnaround , waiting , or response clock starts at when each process arrives.) Process Priority Burst Time Arrival P 1 8 15 0 P 2 3 20 0 P 3 4 20 20 P 4 4 20 25 P 5 5 5 45 P 6 5 15 55 a. Draw
• Two '18
• john
• FCFS, Dr. Weiying Zhu

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern