Processes in Unix, Linux, and Windows.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Processes in Unix, Linux, and Windows.ppt

CS-3013 C-term 2008 Process in Unix, Linux and Windows Processes in Unix, Linux, and Windows CS-3013 Operating Systems (Slides include materials from Operating System Concepts, 7th ed., by Silbershatz, Galvin, Gagne and from Modern Operating Systems, 2nd ed., by Tanenbaum) Processes in Unix, Linux, and Windows Unix pre-empted generic term “process” to mean something very specific Linux and Windows adopted Unix definition Process in Unix-Linux-Windows comprises an address space – usually protected and virtual – mapped into memory the code for the running program the data for the running program an execution stack and stack pointer (SP); also heap the program counter (PC) a set of processor registers – general purpose and status a set of system resources files, network connections, pipes, … privileges, (human) user association, … … Processes – Address Space Processes in the OS – Representation To users (and other processes) a process is identified by its Process ID (PID) In the OS, processes are represented by entries in a Process Table (PT) PID is index to (or pointer to) a PT entry PT entry = Process Control Block (PCB) PCB is a large data structure that contains or points to all info about the process Linux - defined in task_struct – over 70 fields see include/linux/sched.h Windows XP – defined in EPROCESS – about 60 fields Processes in the OS – PCB Typical PCB contains: execution state PC, SP processor registers – stored when process is not in running state memory management info Privileges and owner info scheduling priority resource info accounting info Process – starting and ending Processes are created … When the system boots By the actions of another process (more later) By the actions of a user By the actions of a batch manager Processes terminate … Normally – exit Voluntarily on an error Involuntarily on an error Terminated (killed) by the actions a user or a process Processes – States Process has an execution state ready: waiting to be assigned to CP

文档评论(0)

zhaoxq + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档