- 1、本文档共221页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Understanding the Linux operating system汇
Linux Performance and Tuning Understanding the Linuxoperating system Process Memory IO Network Schematic interaction of different performance components Linux process management timeslice: 30ms 10ms cell, page frame What is a process? A process is an instance of execution that runs on a processor From the kernels point of view, the purpose of a process is to act as an entity to which system resources (CPU time, memory, etc.) are allocated They include a set of resources such as open files and pending signals, internal kernel data, processor state, a memory address space with one or more memory mappings, one or more threads of execution, and a data section containing global variables Process Descriptor and the Task Structure To manage processes, the kernel must have a clear picture of what each process is doing The kernel stores the list of processes in a circular doubly linked list called the task list All processes running on Linux operating system are managed by the task_struct structure, which is also called a process descriptor The task_struct is a relatively large data structure, at around 1.7 kilobytes on a 32-bit machine The process descriptor and task list 链表 The Linux process descriptor Process State TASK_RUNNING The process is either executing on a CPU or waiting to be executed TASK_INTERRUPTIBLE The process is suspended (sleeping) until some condition becomes true. Raising a hardware interrupt, releasing a system resource the process is waiting for, or delivering a signal are examples of conditions that might wake up the process (put its state back to TASK_RUNNING) A typical example of a TASK_INTERRUPTIBLE process is a process waiting for keyboard interrupt TASK_UNINTERRUPTIBLE Like TASK_INTERRUPTIBLE, except that delivering a signal to the sleeping process leaves its state unchanged A typical example of a TASK_UNINTERRUPTIBLE process is a process waiting for disk I/O operation TASK_STOPPED Process execution has been stopped; the process enters this
您可能关注的文档
最近下载
- 汽车坡道玻璃雨棚施工方案.doc
- 抗精神病药长效针剂治疗精神分裂症的专家共识.pptx
- NB╱T 31112-2017 风电场工程招标设计技术规定.pdf
- 专升本退役士兵计算机考试试卷.docx VIP
- 2018人教版六年级美术上册教案.doc VIP
- 2022年捷昌驱动行测笔试题库.pdf
- 16-pf(卡特尔16种人格因素问卷及答案).pdf VIP
- 龙思思-新媒体产品设计与项目管理-第6章 新媒体产品竞争分析.pptx VIP
- 中华民族共同体概论课件专家版15第十五讲:新时代与中华民族共同体建设.pdf VIP
- 超长大体积混凝土结构跳仓法技术规程超长大体积混凝土结构跳仓法技术规程.pdf VIP
文档评论(0)