软件技术基础课件完整版817页.ppt

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

第 * 页 2.1 Two schemes(方式) of address reallocation (1) Static Relocation(静态重定位) — OS maps all logical address to physical address at once when program is loaded into memory. simple; no need for hardware support; program must be stored contiguously; program can not be moved and not be reallocated memory; much CPU time to execute address reallocation; not support program sharing; 第 * 页 Static Relocation mov r1,[300] 123 0 100 300 599 Logical address space 0 1000 256k-1 memory 1100 1300 1600 Contiguous memory Allocation Relocation program (重定位程序) Job 1 mov r1,[1300] 123 第 * 页 (2) Dynamic Relocation(动态重定位) — Address mapping is executed during run-time(运行时); the address in the program stored in main memory is still logical address. Program can be stored in noncontiguous memory partitions; Program code can be move in the memory when being executed, which helps utilize memory; One program can be shared by more than one users; Need for hardware support (memory-management Unit, MMU); 第 * 页 Dynamic Relocation using a relocation register Contiguous memory Allocation mov r1,[300] 123 0 100 300 599 Logical address space mov r1 , [300] 123 0 1000 256k-1 memory 1100 1300 1600 Relocation register 1000 300 Logical address + Physical address MMU Job 1 mov r1,[300] 123 第 * 页 2.2 Memory Allocation Method Contiguous Memory Allocation(连续分区存储) Paging Memory Allocation(页式分区存储) Segmentation Memory Allocation(段式分区存储) Segmentation Memory Allocation with Paging(段页式分区存储) Virtual Memory(虚拟存储): Demand Paging Memory Management(请求分页存储管理) 第 * 页 Main memory usually into two partitions: Resident operating system(常驻操作系统), usually held in low memory with interrupt vector. User processes held in high memory. Contiguous Memory Allocation Each process is allocated in a single contiguous section of memory which can contain exactly this process. Relocation register(重定位寄存器) and limit register(限位寄存器) scheme used to protect user processes from each other, and from changing operating-system co

您可能关注的文档

文档评论(0)

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

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

1亿VIP精品文档

相关文档