CSE 120 Lecture Notes - Lecture 4: Priority Queue

87 views4 pages

Document Summary

Arrival time - time that process is created. Service time - cpu time needed to complete! Given n processes with service times s 1 , , s n. [s 1 + (s 1 + s 2 ) + + (s 1 + + s n )] / n. [(n x s 1 ) + ((n-1) x s 2 ) + ((n-2) x s 3 ) + + (1 x s n )] / n. That means to achieve minimal tt, we want to choose the process with the shortest service time. Allocate cpu to processes in order of arrival. + non-preemptive (cpu not taken away from a process) +no starvation - whenever a process can get the resources it needs. Cycle through processes in the queue (recent processes are entered in the back) Preemptive - need a mechanism that takes away the cpu. Select next process to run w/ the shortest service time.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents