Address Main Memory Program Counter 8000¥ Dispatcher SoD Process A Process B 1200 Process c Figure 3.1 Snapshot of Example Execution (Figure 3.3) at Instruction Cvcle 13
PROCESSES AND SCHEDULING
Example ----Figure3.2, P103 +0 β+0 Y+0 a+1 β+1 +2 β+2 Y+2 c+3 B+3 +3 a↓4 Y+4 c+5 y+5 +6 Y T +7 +7 a+8 y+8 +9 +9 a+10 y+10 a+i1 +11 A O)Trce df Process B o PROCESSES AND SCHEDULING
PROCESSES AND SCHEDULING Example ----Figure3.2,P103
Example --- Figure 3.3, P104 2了 28 一 Time out 32 83 6÷2 35 5+3 忘+4 65 38 13 9 6 LO Request 42 43 8 4s 8+3 2露 22 48 24 5 25 52 PROCESSES AND SCHEDULING
PROCESSES AND SCHEDULING Example --- Figure 3.3,P104
Two State Process Model (P104) ☆ Two states s Running 常Not- running .a new process enters into the not-running state a running process will be interrupted and a new process will be e selected to run ROCESSES AND SCHEDULING
PROCESSES AND SCHEDULING Two State Process Model(P104) ❖Two states Running ٭ ٭ Not-running ❖A new process enters into the not-running state. ❖A running process will be interrupted and a new process will be selected to run
Figure 3.4a, P105 DIspatch Enter Not Exlt RunnIng RunnIng use (a) State transition diagram PROCESSES AND SCHEDULING
PROCESSES AND SCHEDULING Figure 3.4a,P105