3.2.1 Trace of the process(1/4) Trace of process(进程轨迹) Sequence of instruction that execute for a process Dispatcher(调度器) switches the processor from one process to another 进程A 进程B 进程C
12 3.2.1 Trace of the Process(1/4) • Trace of Process(进程轨迹) • Sequence of instruction that execute for a process • Dispatcher(调度器) switches the processor from one process to another 进程 A 进程 B 进程 C 时间
3.2.1 Trace of the process(2/ 4) Example Execution Address Main Memory Program Counter 8000 100 Dis patcher 5000 Process a 8000 Process B 12000 Process c Figure 3.2 Snapshot of Example Execution (Figure 3.4 at Instruction Cycle 13
13 3.2.1 Trace of the Process(2/4) • Example Execution Address Main Memory Dispatcher Process A Process B Process C Program Counter 0 100 5000 8000 8000 12000 Figure 3.2 Snapshot of Example Execution (Figure 3.4) at Instruction Cycle 13
3.2.1 Trace of the process(3/ 4) 5000 8000 12000 5001 8001 12001 5002 8002 12002 5003 8003 12003 5004 12004 5005 12005 5006 12006 5007 12007 5008 12008 5009 12009 5010 12010 5011 12011 (a)Trace of Process A(b) Trace of Process B(c) Trace of Process C 5000= Starting address of pro gram of process A 8000= Starting address of pro gram of Process B 12000= Starting address of program of Process C Figure 3.3 Traces of Processes of Figure 3.2
14 3.2.1 Trace of the Process(3/4)
3.2.1 Trace of the process(4/ 4) 1 5000 2了 12004 5001 12005 ime out 斗 5003 100 5004 3 11 5005 Time out 103 100 1。4 11 105 102 5006 10 103 36 5007 11 104 5008 12 105 38 5o09 13 39 5010 80o1 4 5011 8o02 T重eout 16 80o3 100 /。 request 11 100 102 18 101 44 103 102 45 104 103 46 10s 21 104 12006 105 4s 12007 12000 49 12008 24 12001 5 12009 12002 51 12010 12003 12011 Time out 100=Starting address of dispatcher program shaded areas indicate execution of dispatcher process; irst and third columns count instruction cycles nd and fourth columns show address of instruction being executed Figure 3.4 Combined race of Processes of Figure 3.2 15
15 3.2.1 Trace of the Process(4/4)
3.2 Process states .3.2.1 Trace of the process 3.2.2A Two-State Process model 3.2.3 The Creation and termination of Processes 3.2, 4A Five-State Model 3.2.5 Suspended process
16 3.2 Process States • 3.2.1 Trace of the Process • 3.2.2 A Two-State Process Model • 3.2.3 The Creation and Termination of Processes • 3.2.4 A Five-State Model • 3.2.5 Suspended Process