process scheduling ii ( 5.3)

10
Process Scheduling II (5.3) CPE 261403 - Operating Systems http://www.e-cpe.org/moodle

Upload: cambria-jovan

Post on 01-Jan-2016

32 views

Category:

Documents


0 download

DESCRIPTION

Process Scheduling II ( 5.3). CPE 261403 - Operating Systems http://www.e-cpe.org/moodle. Scheduling Criteria (5.2). CPU Utilization Throughput Turnaround time Waiting time Response time. Scheduling Algorithms (5.3). FCFS SJF (non-preemptive / preemptive) Priority Scheduling - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Process Scheduling II ( 5.3)

Process Scheduling II(5.3)

CPE 261403 - Operating Systemshttp://www.e-cpe.org/moodle

Page 2: Process Scheduling II ( 5.3)

Scheduling Criteria (5.2)

CPU Utilization

Throughput

Turnaround time

Waiting time

Response time

Page 3: Process Scheduling II ( 5.3)

Scheduling Algorithms (5.3)

FCFS SJF (non-preemptive / preemptive) Priority Scheduling Round-Robin Scheduling Multilevel Queue Scheduling Multilevel Feedback-Queue Scheduling

Page 4: Process Scheduling II ( 5.3)

Priority Scheduling

Defining Priorities Internally Defined Priorities

External priorities

Page 5: Process Scheduling II ( 5.3)

Starvation

Page 6: Process Scheduling II ( 5.3)

IBM 7094 at MIT

When closing down in 1973, found a process submitted in 1967 (Myth)

Page 7: Process Scheduling II ( 5.3)

Round Robin Scheduling

Preemptive by Nature

Defines a Time Quantum

Time Quantum >> Context Switch Time

Page 8: Process Scheduling II ( 5.3)

Multilevel Queue Scheduling

Scheduling within & among queues Use simple priority or CPU time slice (quota)

Page 9: Process Scheduling II ( 5.3)

Multilevel Feedback Queue

Example: Q1=RR, Q2=RR, Q3=FCFS

Page 10: Process Scheduling II ( 5.3)

Multilevel Feedback Queue

Parameters: Number of queues

Scheduling algorithms for each queue

When to upgrade a process

When to downgrade a process

Which queue should a new process enter