操作系统笔记 第三章 内存管理

第三章 内存管理

image-20210923152423081

1内存管理基础

1.1内存的概念

image-20210913214511561

image-20210913214445857

image-20210913214902620

image-20210913215048488

image-20210914205624739

image-20210914205848258

image-20210914210056548

image-20210914210216304

image-20210914210230873

1.2内存管理的概念

image-20210914210311331

image-20210914210414582

image-20210914210454086

image-20210914210607942

image-20210914210633336

image-20210914211032682

image-20210914211042621

1.3覆盖与交换

image-20210914211456402

image-20210914211552851

image-20210914211832820

image-20210914212100250

image-20210914212124515

image-20210916221555104

image-20210916221619276

1.4连续分配管理方式

image-20210916221720757

image-20210916222004667

image-20210916222211537

image-20210916222337464

image-20210916222730455

image-20210916222832801

image-20210916222929772

image-20210916223516443

image-20210916223839713

image-20210916223902719

1.5动态分配算法

image-20210916224041496

image-20210916224418394

image-20210916224645202

image-20210916224751772

image-20210916225121739

image-20210916225135165

1.6分页存储管理

image-20210916225431887

image-20210916232224135

image-20210916232413871

image-20210916232807147

image-20210916233140278

image-20210916233936436

image-20210916234502273

image-20210916234750386

image-20210916234936758

image-20210916235143710

image-20210916235200906

1.7基本地址变换机构

image-20210917222843326

image-20210917223719824

操作系统把内存分为 系统区(存放数据结构 PCB) 用户区

进程被调度时 把pcb中的信息放入相应的寄存器 其中有页表寄存器

  1. 根据逻辑地址结构 知道页号和页内偏移量

  2. 对页号合法性检查 与页表长度对比

  3. 页号合法时 根据页号 页表起始地址 找到 页表项(包含内存块号)

  4. 再根据页内偏移量 得到物理地址

  5. 进行访问

image-20210917225109352

image-20210917225620219

image-20210917230611081

image-20210917231222462

image-20210917231337974

1.8具有快表的地址变换机构

image-20210917232208151

image-20210917232445686

image-20210917233104552

image-20210917233234460

image-20210917233725463

image-20210917233957594

image-20210917234037813

1.9两级页表

image-20210917234102799

image-20210918230204540

image-20210918230513399

image-20210918230652298

image-20210918230745665

image-20210918231259112

image-20210918231337616

image-20210918231439921

image-20210918231633212

image-20210918231830918

1.10基本分段存储管理

image-20210918231923985

image-20210918232053047

image-20210918232255352

image-20210918232429671

image-20210918232850378

image-20210918233228520

image-20210918233819100

image-20210918233947795

image-20210918234136052

image-20210918234220109

image-20210918234340453

1.11段页式管理方式

image-20210918234417885

image-20210918234616489

image-20210918234701146

image-20210918234803855

image-20210918234919366

一个进程只会对应一个段表 每个段(段表项)会对应一个页表 故:一个进程可能对应多个页表

image-20210918235642301

image-20210918235822624

2虚拟内存管理

2.1虚拟内存

image-20210918235949930

image-20210918235959278

image-20210919000154203

image-20210919000330202

image-20210919000455034

image-20210919000633264

image-20210919000711171

2.2请求分页管理方式

image-20210919231942539

image-20210919232147579

image-20210919232415987

image-20210919232800672

image-20210919232839926

image-20210919233115721

image-20210919233258216

image-20210919233405301

2.4页面置换算法

image-20210919233447135

image-20210919233851177

image-20210919233912112

image-20210919234155403

image-20210919234436671

image-20210919234831771

image-20210919235317573

image-20210919235333683

2.5页面分配策略,抖动,工作集

image-20210919235411128

image-20210920000258224

image-20210920000505435

image-20210920000834880

image-20210920001031607

image-20210920001134545

image-20210920001306350

image-20210920001510750

posted @ 2021-09-23 15:26  有空就一起吃饭吧  阅读(113)  评论(0编辑  收藏  举报