下载此文档

浙江省深化普通高中课程改革方案.doc


文档分类:管理/人力资源 | 页数:约5页 举报非法文档有奖
1/5
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/5 下载此文档
文档列表 文档介绍
Processes
Process – a program in execution; process execution must progress in sequential fashion
Textbook uses the terms job and process almost interchangeably
As a process executes, its state changes:
new: The process is being created
running: Instructions are being executed
waiting: The process is waiting for some event to occur
ready: The process is waiting to be assigned to a process
terminated: The process has finished execution
Diagram of Process State
As a process executes, it changes state
new: The process is being created
ready: The process is waiting to run
running: Instructions are being executed
waiting: Process waiting for some event to occur
terminated: The process has finished execution
Fetch
Exec
R0

R31
F0

F30
PC

Data1
Data0
Inst237
Inst236

Inst5
Inst4
Inst3
Inst2 Inst1
Inst0
Addr 0
Addr 232-1
What happens during execution?
Execution sequence:
Fetch Instruction at PC
Decode
Execute (possibly using registers)
Write results to registers/mem
PC = Next Instruction(PC)
Repeat
PC
PC
PC
PC
CPU3
CPU2
CPU1
Shared Memory
Assume a single processor. How do we provide the illusion of multiple processors?
Multiplex in time!
Each virtual “CPU” needs a structure to hold:
Program Counter (PC), Stack Pointer (SP)
Registers (Integer, Floating point, others…?)
How switch from one CPU to the next?
Save PC, SP, and registers in current state block
Load

浙江省深化普通高中课程改革方案 来自淘豆网m.daumloan.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数5
  • 收藏数0 收藏
  • 顶次数0
  • 上传人aideliliang128
  • 文件大小1.02 MB
  • 时间2018-04-21
最近更新