CS 162, Spring 2007
Section notes for 23 January 2007
Sections 102/103
GSI: Thomas Kho <cs162-ta@inst.eecs.berkeley.edu> /
<tkho@eecs>
Based on notes by Hakim Weatherspoon and Karl Chen
Agenda
HW1
(get next event)SCHEDULING SIMULATION!
(reset clock to event time)
(update system statistics)
(update system state)
(generate any new events and put them on event list)
(continue loop).
• FCFS, RR (Q=2), SJF, SRPT (Q=2), SET (Q=2)
• Job, Arrival time, service time:
A 1 1
B 4 3
C 6 5
D 15 10
E 19 6
F 19 4
G 20 1
• Calculate: flow time, service time - mean, std dev
Program vs Process <=> Play vs Script