- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Modern OS_2
Sep 12, 2002 ECNU-Operating Systems Design, Li Dong Chap. 2 Processes and Threads What is a process? Information in a process What is a thread? Thread implementations Interprocess Communication Classical IPC Problems Process Scheduling Summary Users, Programs, Processes Users have accounts on the system Users launch programs Many users may launch same program One user may launch many instances of the same program Processes: an executing program Real life analogy? Analogy Program: steps for attending the lecture Step1: walk to the building of … Step2: enter 233 Step3: find a seat Step4: listen and take notes (or sleep) Process: attending the lecture Action You are all in the middle of a process Windows Task Manager Unix Example: ps Process Creation System initialization reboot Execution of a process creation system call Fork() User request to create a new process Command line or click an icon Initiation of a batch job Process Termination Normal exit (voluntary) End of main() Error exit (voluntary) exit(2) Fatal error (involuntary) Divide by 0 Killed by another process (involuntary) Kill procID, end task Process Hierarchies Parent creates a child process, a child process can create its own processes Forms a hierarchy UNIX calls this a process group Windows has no concept of process hierarchy all processes are created equal Process States Possible process states Running (occupy CPU) Blocked Ready (does not occupy CPU) Other states: suspended, terminated Transitions between states Questions Why not the following transitions? Ready to blocked Blocked to running The Process Model Multiprogramming of four programs Conceptual model of 4 independent, sequential processes Only one program active at any instant Real life analogy?(A nurse trying to feed 4 infants?) Parallelism vs. Pseudo- parallelism So What’s In A Process? And Why? Process State ready, running, blocked; Program Counter the address of the next instruction to be executed for this process; CPU Registers g
您可能关注的文档
最近下载
- 十八护理核心制度.doc VIP
- Unit3OurcultureourtresaureReading课件高中英语牛津译林版(2020)选修第三册3.pptx
- JJF(京)159-2025 水质在线电导率仪校准规范.pdf VIP
- GZ104 跨境电子商务赛题第5套-2024年全国职业院校技能大赛双数年拟设赛项赛题.pdf VIP
- 新22J10 无障碍设计.docx VIP
- 杨志人物介绍水浒传.pptx VIP
- 材料科学与工程基础》顾宜第四章课后答案.pptx VIP
- GZ104 跨境电子商务赛题第6套-2024年全国职业院校技能大赛双数年拟设赛项赛题.pdf VIP
- 《PDCA管理循环培训》课件.ppt VIP
- DGTJ08-2206-2024 建筑信息模型技术应用标准(人防工程).pdf VIP
文档评论(0)