Classroom slides processor scheduling - PowerPoint PPT Presentation

1 / 17
About This Presentation
Title:

Classroom slides processor scheduling

Description:

7.5 mins. 2.5 mins. Huh? how does this relate to CS 2200? Use by the OS. Program stack ... Avg. Turnaround Time? Avg. Wait Time? Response time? P1. P2. P3. w1 ... – PowerPoint PPT presentation

Number of Views:20
Avg rating:3.0/5.0
Slides: 18
Provided by: compu62
Category:

less

Transcript and Presenter's Notes

Title: Classroom slides processor scheduling


1
Classroom slides processor scheduling
2
  • It takes me 10 minutes to walk to TSRB from COC.
    I can run twice as fast as I walk. If I walk
    half the distance and run the remaining half, how
    much time will I take to reach TSRB from COC
  • 10 mins
  • 5 mins
  • 7.5 mins
  • 2.5 mins
  • Huh? how does this relate to CS 2200?

3
(No Transcript)
4
Problem spec
Libraries
Partial binary
Human
Algorithm
Linker
Editor
C Code
Executable binary
Compiler
Loader
Memory Footprint
5
(No Transcript)
6
(No Transcript)
7
PCB
  • enum state_type new, ready, running,
    waiting, halted
  • typedef struct control_block_type
  • enum state_type state
  • address PC
  • int reg_fileNUMREGS
  • struct control_block next_pcb
  • int priority
  • address memory_footprint
  • .
  • .
  • control_block

8
Ready queue

PCB1
PCB2
PCBn
I/O queue

PCB1
PCB2
PCBn
9
(No Transcript)
10
Metrics
Throughput? Avg. Turnaround Time? Avg. Wait
Time? Response time?
11
FCFS
12
SJF
13
Priority Scheduler
ready_q

PCB1
PCB2
PCBn
Level L

PCB1
PCB2
PCBn
Level L-1
. . .

PCB1
PCB2
PCBn
Level 1
14
Round Robin
q
Program 1
Program 2
q
Processor
. . .
Round robin scheduler
q
Program n
15
(No Transcript)
16
Scheduler get head of ready queue set
timer dispatch Timer interrupt handler save
context in PCB upcall to scheduler I/O
request trap save context in PCB move PCB to
I/O queue upcall to scheduler I/O completion
interrupt handler save context in PCB move
PCB of I/O completed process to ready queue
upcall to scheduler Process termination trap
handler Free PCB upcall to scheduler
17
Multi-Level Scheduler
Write a Comment
User Comments (0)
About PowerShow.com