- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
中断处理-Piazza
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 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 What happens during execution? 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 PC, SP, and registers from new state block What triggers switch? Timer, voluntary yield, I/O, other things Simple multiprogramming All virtual CPUs share same non-CPU resources I/O devices the same Memory the same Consequence of sharing: Each thread can access the data of every other thread (good for sharing, bad for protection) Threads can share instructions(good for sharing, bad for protection) Can threads overwrite OS functions? This (unprotected) model common in: Embedded applications Windows 3.1/Machintosh (switch only with yield) Windows 95—ME? (switch with both yield and timer) Program’s Address Space Address space ? the set of accessible addresses + state associated with them: For a 32-bit processor there are 23
您可能关注的文档
最近下载
- 重难点20 立体几何中的动态、轨迹问题【六大题型】(举一反三)(新高考专用)(解析版).docx VIP
- 新解读《DL_T 5862—2023电化学储能电站施工图设计内容深度规定》最新解读.docx VIP
- 二次型Boost.doc VIP
- 2025年新鲁教版化学9年级全册同步教学设计.pdf
- 德国探亲签邀请函中德文对照.docx
- 第19课 法国大革命和拿破仑帝国 教学设计.docx VIP
- 2025医院医疗器械质量管理制度汇编 .pdf VIP
- Roland罗兰乐器JUNO-D6 合成器[Simplified Chinese] JUNO-D6 D7 D8 Startup Guide ]用户手册.pdf
- 阳光同学分层设计福建专版八年级数学教师用书.pdf VIP
- 人工智能在检验医学领域的应用.pptx VIP
文档评论(0)