ProcessAddressSpace.ppt

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

Process Address Space Outline The Process’s Address Space The Memory Descriptor Memory Regions Page Fault Exception Handler Creating and Deleting a Process Address Space Managing the Heap 1 Process Address Space A kernel function gets dynamic memory The kernel is the highest priority component of the operation system The kernel trusts itself User Mode process get dynamic memory Process requests for dynamic memory are considered nonurgent =defer allocating User programs cannot be trusted = kernel catch all addressing error. Process Address Space Memory region User mode process asks for dynamic memory: It does not get additional page frame. It gets the right to use a new range of linear address, which become part of its address space. This interval is called a memory region. The Process’s Address Space Consists of all linear addresses that the process is allowed to use Each process sees a different set of linear address. Kernel may dynamically modify a process address space by adding or removing intervals of linear address. Memory regions are characterized by an initial linear address, a length, and some access rights. A process gets new memory region user type a command at the console running process load an entirely different program running process perform a “memory mapping” on a file process keep adding data on its user mode stack process create an IPC shared memory region process expand its dynamic area (the heap) System call brk() changes the heap size of process execve() loads a new executable file exit() terminates the current process fork() creates a new process mmap() creates a memory mapping for a file munmap() destroys a memory mapping for a file shmat() creates a shared memory region shmdt() destroys a shared memory region Page fault exception handler Kernel must to identify the memory regions currently owned by a process Those caused by programming errors. Those caused by a missing page. The linear address belongs to the process’s address but t

文档评论(0)

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

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

1亿VIP精品文档

相关文档