{"format":"brushup-mindmap-v1","id":"01-os-overview","title":"操作系统概述【王道】","structure":"logic-right","theme":"auto","root":{"id":"845b7bfb2ebacab0d0453b6020","topic":"第一章 操作系统概述","expanded":true,"children":[{"id":"7d90c0d0-1eef-4038-9db7-8ecc79a3aa1f","topic":"操作系统功能","expanded":true,"children":[{"id":"21a939c85918c3b76290c87461","topic":"管理硬件（前五块也就是操作系统的所有内容）","expanded":true,"style":{"borderColor":"#E32C2D"},"children":[{"id":"e35c5495-8bcb-47c3-b6cf-c2c1c01263ab","topic":"CPU管理","expanded":true},{"id":"cc1c47fc-1fa0-44c7-aba5-fe611b73a18a","topic":"内存管理","expanded":true},{"id":"de26ebe7-7bb4-4199-8923-4a8726057a15","topic":"I/O（终端）管理","expanded":true},{"id":"db0adbf0-d463-4c33-b030-37c32b3dfa45","topic":"磁盘管理","expanded":true},{"id":"d75af19f-f611-4d88-9367-1fcdde97434e","topic":"文件管理","expanded":true},{"id":"77744e5a-9cd9-43b8-8b6a-fec7faf3004a","topic":"网络管理、电源管理、多核管理（不讲，课程高级操作系统讲解）","expanded":true}]},{"id":"b5dbceeb-a18f-46b0-80b5-8f55824b1180","topic":"特征","expanded":true,"children":[{"id":"033e9245-1cec-4271-a0e5-1eddedb11ebb","topic":"并发","expanded":true,"children":[{"id":"c62ea793-b204-4cfc-9fcf-618ab87237fe","topic":"并发（进程）","expanded":true,"children":[{"id":"059d8a64-b419-4c62-9ba5-0adfb03ee0ee","topic":"多道程序环境，宏观上多道程序同时执行，每个时刻单处理机仅有一道程序执行，微观上程序分时交替执行","expanded":true}]},{"id":"2bffdbe9-ee34-4a88-ad98-f7acaceef752","topic":"并行","expanded":true,"children":[{"id":"4437a42f-1441-4c12-b968-186755005892","topic":"同一时刻完成两种或两种以上工作，需要硬件支持","expanded":true}]}]},{"id":"c220cf3c-095b-48ef-8e47-3fed7fce651f","topic":"共享","expanded":true,"children":[{"id":"31574d91-d30e-4ef7-857d-59bd98f40404","topic":"互斥共享方式","expanded":true,"children":[{"id":"d86bbd1b-6b98-4817-805e-5e0d78ddfa19","topic":"某些资源在一段时间内只允许一个进程访问该资源","expanded":true}]},{"id":"e2508cc4-2489-4814-bbf3-3110d62eee98","topic":"同时访问方式","expanded":true,"children":[{"id":"a2e691ec-5f71-43bf-b656-cfc2db207ba5","topic":"一段时间内允许多个进程对资源进行访问，分时共享","expanded":true}]}]},{"id":"72770200-bacb-4719-b5b5-31c29bea0889","topic":"虚拟","expanded":true,"children":[{"id":"63415b46-a87e-4669-a6fc-b6d747b79e90","topic":"一个物理上的实体变为若干逻辑上的对应物","expanded":true,"children":[{"id":"75732e92-c93e-4fe7-99aa-cd79a40b68e6","topic":"时分复用技术","expanded":true},{"id":"874063fd-5574-4888-9740-fc6bfd09e601","topic":"空分复用技术","expanded":true}]}]},{"id":"6e6a6904-be33-4748-a428-445c0c514961","topic":"异步","expanded":true,"children":[{"id":"759a9d78-03be-4638-b4d4-38a4e6e39505","topic":"由于资源有限，进程的执行不是一贯到底，走走停停，以不可预知的速度前进","expanded":true}]}]}]},{"id":"cd28e067-f96e-481d-a66f-8e48caa06c02","topic":"操作系统的启动","expanded":true,"style":{"borderColor":"#FF9F00"},"children":[{"id":"ba2a9fbe-9d5d-4b3f-a4d9-4f304e792df5","topic":"哈工大版本","expanded":true,"children":[{"id":"570ced3c-a958-42f2-805f-6d37878efa20","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-8dd4bbcf720695.png","width":623.24,"height":97.43},"children":[{"id":"a40372bc-3eb4-48be-b918-2baa6bd677ad","topic":"x86 PC为例","expanded":true},{"id":"b33227b6-4f1e-43b3-9ad0-ecd580f7236d","topic":"BIOS映射区：固化在主存ROM中，用于检查RAM、键盘、显示器、软硬磁盘等，并将磁盘第一个扇区读入主存","expanded":true},{"id":"90022b31-b8c1-4011-bbf5-ffa42159b898","topic":"引导扇区代码（bootsect.s一段汇编代码）：将操作系统读入内存，转入setup.s执行","expanded":true,"children":[{"id":"6a896e7b-987e-4ec6-a457-5458b6a00d3a","topic":"补充：该程序的主要作用是首先把从磁盘第2个扇区开始的4个扇区的setup模块加载到内存紧接着bootsect后面位置（(0x90200)），再把磁盘上setup模块后面的system模块加载到内存0x10000开始的地方","expanded":true}]},{"id":"295bc01c-3a7c-4a52-b457-bb8f99423b95","topic":"setup模块（setup.s汇编代码执行）","expanded":true,"children":[{"id":"f593d8ce-5317-4151-b83f-73f4b55f7235","topic":"读硬件参数存储到内存数据结构中，初始化gdt表","expanded":true,"children":[{"id":"6628afae-d67f-46d0-9f13-57bc4a00ba9d","topic":"gdt表（全局描述表）：保护模式下，以数组的形式存储全局的段的描述符","expanded":true},{"id":"1d845a6a-ef4d-4605-aa12-c43aa2e5476a","topic":"idt表（中断描述符表）：记录了中断号和调用函数之间的关系","expanded":true}]},{"id":"d1a52f25-18c6-4589-8df0-68dc978871b0","topic":"system模块移动到物理内存起始位置处（0x0000），启动保护模式，转跳到0x0000处","expanded":true}]},{"id":"eb081c62-779b-4247-be8d-dc0ecb8baac5","topic":"system模块","expanded":true,"children":[{"id":"edd85f73-8971-4d3a-aaad-4d232fc452f9","topic":"head.s：初始化一些gdt表、idt表、页表","expanded":true},{"id":"bfe054a6-792c-4e7b-bd80-d620dedd6acf","topic":"main.c：一堆初始化函数","expanded":true}]}]}]},{"id":"0bc6093d-e41f-485f-a957-082affce2191","topic":"王道版本","expanded":true,"children":[{"id":"0ddca6cf-8953-4017-9133-2aed76b86653","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-172f97a5700e45.png","width":768,"height":283.31},"children":[{"id":"66c961fd-b2b1-48ae-b7f8-94493a63ec4c","topic":"CPU执行ROM中引导程序（硬件自检，再开机）","expanded":true,"children":[{"id":"580fbbd1-42ab-42d0-9eba-39a5e3802b85","topic":"CPU执行指令跳转到BIOS，登记中断程序入口地址，硬件自检，进行操作系统引导","expanded":true}]},{"id":"cf70f754-bc18-48ac-8a6a-37e60ff080d8","topic":"磁盘第一块------主引导记录读入内存，执行磁盘引导程序，扫描分区表","expanded":true},{"id":"ab769978-d9db-4861-8c58-9bd61c06c105","topic":"以活动分区读入分区引导记录，并执行","expanded":true},{"id":"35fd77de-0025-4da2-9a8e-36d0f155944c","topic":"以根目录下找到完整操作系统初始化程序（启动管理器）并执行、开机","expanded":true}]},{"id":"b6451ed6-25f1-4336-8f21-6de85afd0175","topic":"操作系统在初始化过程中创建中断向量表，磁盘相关在磁盘格式化化时完成","expanded":true,"style":{"borderColor":"#EB4D3D"}}]}]},{"id":"630009de-89e7-4977-a2c7-6ca905ec7677","topic":"操作系统的运行环境（王道）","expanded":true,"children":[{"id":"608507e1-d9c5-45ff-b209-4f1298d67f51","topic":"CPU的状态","expanded":true,"style":{"borderColor":"#E32C2D"},"children":[{"id":"e489b565-c5a7-4a90-8cb7-981ec10bb164","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-7bfa19c7366bc3.png","width":692.31,"height":239.81},"children":[{"id":"7630c4c4-c3b0-4a5c-b3cb-307fdc7e6529","topic":"内核态（管态/核心态）：CPU可以执行特权指令，操作系统内核程序运行在核心态","expanded":true},{"id":"efeba876-3d3a-4687-9d61-38df4dbcaf30","topic":"用户态（目态）：CPU只能执行非特权指令","expanded":true},{"id":"9354fe54-5b1f-4829-9d83-2d1a8e5ab368","topic":"注意区别题目问的是xxx态发生还是xxx态执行","expanded":true,"style":{"borderColor":"#EB4D3D"}},{"id":"d75928d6-3dd6-45fc-9b8e-9ac1805b7ed3","topic":"内核态->用户态","expanded":true,"children":[{"id":"2ba6b4f1-449c-4702-85be-ddfb4d197e36","topic":"执行一条特权指令，修改PSW中“用户态”，操作系统主动让出CPU使用权","expanded":true}]},{"id":"b0a03b6c-b46d-4cbd-84aa-7764831f8d96","topic":"用户态->内核态","expanded":true,"children":[{"id":"c68cc40e-92b1-47a1-9147-8be01cc615f8","topic":"由“中断”引发（内中断、陷入指令、访管指令、Trap指令），硬件完成，操作系统强行夺回CPU使用权","expanded":true,"style":{"borderColor":"#EB4D3D"}}]},{"id":"0780d509-e749-467a-8b44-99dc2d7c123b","topic":"用户态进入内核态，堆栈也由用户堆栈切换为系统堆栈，但该系统堆栈也属于该进程","expanded":true}]}]},{"id":"806614f0-0cf0-4040-8e72-dd8492c044da","topic":"中断与异常","expanded":true,"style":{"borderColor":"#E32C2D"},"children":[{"id":"a048ec49-daad-4661-8e58-7e594215f602","topic":"异常（内中断）","expanded":true,"children":[{"id":"a18dacc2-db3b-43d6-bd81-91e6adfe3271","topic":"例外、陷入、访管、Trap指令，硬件故障，软件中断","expanded":true}]},{"id":"0b32cfe5-ba35-42e2-a852-24e9fd6e47bf","topic":"中断（外中断）","expanded":true,"children":[{"id":"71d66344-e5a3-43d9-b52c-6d7a1aa9fa6b","topic":"来自CPU执行指令之外的事件发生导致中断（外设请求、人为干预）","expanded":true}]},{"id":"0d95215a-efba-44b2-9eda-665b745a2a4a","topic":"中断处理过程","expanded":true,"children":[{"id":"25abd079-acc3-42d0-828a-53d562014899","topic":"中断隐指令（硬件完成）","expanded":true,"children":[{"id":"cfb127fa-e064-4450-a572-64d759b0908a","topic":"关中断","expanded":true},{"id":"0d11a720-a401-4462-9b44-d2102be7f8b6","topic":"保存断点","expanded":true},{"id":"31c956af-0cbd-4fd1-a9c7-b311d0d580ac","topic":"中断服务程序寻址","expanded":true}]},{"id":"8f66459a-58b6-4617-b874-1b47a5308b02","topic":"中断服务程序（软件实现，操作系统）","expanded":true,"children":[{"id":"f9e0fa10-91d1-4c3c-8ec7-1491c65b8a2b","topic":"保存现场和屏蔽字","expanded":true},{"id":"1ae513eb-2335-4464-87d9-1c53a6592250","topic":"开中断","expanded":true},{"id":"68958ef0-73ae-4453-95ac-fd879c98437e","topic":"执行中断服务程序","expanded":true},{"id":"94bd5fe8-fdf2-4262-8a4c-92541e6be493","topic":"关中断","expanded":true},{"id":"77bb2940-ee85-4e0b-b819-921b6cd14b26","topic":"恢复现场和屏蔽字","expanded":true},{"id":"4c7f7dc0-ae92-469a-bc50-c70bc1387733","topic":"开中断","expanded":true},{"id":"c8af7c34-3530-461c-a1eb-c6f1e6adb30d","topic":"中断返回","expanded":true}]}]},{"id":"92645078-d173-4300-af80-6fd6709a3626","topic":"子程序调用只需保存程序断点（PC）\n中断处理不仅要保存断点还有保存程序状态字寄存器（PSW），两者都是硬件保存","expanded":true,"style":{"borderColor":"#EB4D3D"},"children":[{"id":"41f70605-7f08-43e7-af97-8b313e06b6fb","topic":"通用寄存器由操作系统保存，仅在内容还需使用不可恢复时保存","expanded":true,"style":{"borderColor":"#EB4D3D"}}]}]},{"id":"ca65c6a0-2105-4626-a304-19de52518dbb","topic":"向上层提供的服务","expanded":true,"children":[{"id":"5990a0ff-fda4-4b32-9232-24325c120c98","topic":"程序间接使用","expanded":true,"children":[{"id":"11cf73fe-c26d-4b27-809d-c20cbdc416ce","topic":"系统调用（广义指令）","expanded":true,"children":[{"id":"6fb70936-e6b2-4445-95e9-bd88c875472f","topic":"操作系统接口（哈工大）","expanded":true,"children":[{"id":"39cdf8cd-ff37-48af-97d8-d305274ee9bb","topic":"三种用户使用方式（上层提供服务）","expanded":true,"children":[{"id":"eb9f68da-da42-4aa6-a5f4-fc4fe88fd1ce","topic":"都是通过c语言调用一些操作系统提供的重要函数实现，重要函数即操作系统接口，表现为函数调用，因为由系统提供，称为系统调用","expanded":true,"children":[{"id":"1a13182f-832a-4713-8f5b-275e6299eb71","topic":"命令行：本质是系统初始化完，最后执行的一段死循环等待用户输入的程序","expanded":true},{"id":"f48176a2-37e3-4f48-b6d8-e946c3381312","topic":"图形按钮：基于消息机制","expanded":true,"children":[{"id":"c5746baf-489c-405c-88e6-3f6267622fdf","topic":"消息机制：操作系统实现一个消息队列，应用程序循环调用一个函数，从操作系统将消息拿出来，每取出一个就会调用对应的消息处理函数","expanded":true}]},{"id":"c69b44e8-d6f8-441b-b548-321a52f1a31d","topic":"应用程序","expanded":true}]}]},{"id":"bbf5a0c1-1258-4192-8456-3bd771e71168","topic":"POSIX：IEEE制定的一个标准族","expanded":true,"children":[{"id":"c2c79a01-3a0f-46b1-9088-1a2d59c41ddc","topic":"统一不同操作系统的系统调用接口：fork、open、EACCES等","expanded":true}]},{"id":"e2e36714-b4a9-403e-b16d-5f199364d0d9","topic":"系统调用的实现","expanded":true,"children":[{"id":"2959e597-b1d1-4b5f-af46-1ce51e192230","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-2001cdba8bac91.png","width":528.75,"height":149.01},"children":[{"id":"f5118cb9-37e0-47b2-830c-6be1d7741253","topic":"用户调用printf，通过库函数变成int 0x80代码，系统在初始化时将int 0x80代码做成一个system call进入内核态，system call中断处理调用system call table去查表，根据传递的系统调用号，最后调用sys_write","expanded":true}]}]}]},{"id":"39b5af30-ab22-4612-9c63-260ea9fd0c26","topic":"系统调用概念","expanded":true,"children":[{"id":"6c903bf5-0983-4de9-8124-017bdfa7ee2f","topic":"用户在程序中调用操作系统子功能，可视为特殊的公共子程序","expanded":true},{"id":"b7225865-fadb-469f-9e3b-7726cde97106","topic":"只能通过用户程序间接使用","expanded":true,"style":{"borderColor":"#EB4D3D"}},{"id":"11845398-fffc-4172-8a9c-b693971951a6","topic":"目的","expanded":true,"children":[{"id":"c4983304-3b5c-467f-a8db-6e965b7e08c7","topic":"请求系统服务，而非申请系统资源","expanded":true,"style":{"borderColor":"#EB4D3D"}}]}]},{"id":"6986d47e-686e-4db5-a8e7-99c58866f5c9","topic":"系统调用过程","expanded":true,"children":[{"id":"8de2d944-5746-4bc3-bba4-01948f36f0af","topic":"传递系统调用参数","expanded":true},{"id":"4f230d05-02f7-4373-8225-8548b7c34c7d","topic":"执行陷入指令（访管指令/trap指令）主动引发一个内中断","expanded":true},{"id":"7bdcea8c-4783-47f4-94b2-a54822d4c614","topic":"执行服务程序","expanded":true},{"id":"353d5388-b45f-4380-88e8-83a6496c277f","topic":"返回用户态","expanded":true}]},{"id":"ad01f183-78a4-4b32-8541-f5a616e025ed","topic":"进程调度并非通过系统调用完成，创建新进程是","expanded":true,"style":{"borderColor":"#EB4D3D"}}]}]},{"id":"bbbf5e05-659d-4eab-85c0-ecc3a5512f23","topic":"用户直接使用","expanded":true,"children":[{"id":"ffeda87a-7f72-4051-b356-2f7a2522e578","topic":"GUI（图形用户界面）","expanded":true},{"id":"360653b9-ea26-4c9f-88cd-aae5edd226da","topic":"命令接口（命令解释程序）","expanded":true,"children":[{"id":"4fa1b03e-f06c-4980-a80f-fdffae5c43af","topic":"联机用户接口","expanded":true},{"id":"52d61650-b746-4087-83fc-66e0170cc0d5","topic":"脱机用户接口","expanded":true}]}]}]}]},{"id":"fc95716e-7399-49b8-960a-1b95788d3fb3","topic":"操作系统历史","expanded":true,"children":[{"id":"54188384-9544-4e5f-a688-b84b235541a2","topic":"哈工大分两条线讲","expanded":true,"children":[{"id":"81621003-48ed-44fc-b20e-dfe6f67f8ffd","topic":"IBSYS","expanded":true,"children":[{"id":"6918071c-e05a-4f2d-935a-6327253ae70e","topic":"OS/360","expanded":true,"children":[{"id":"c7ef611b-e256-4881-8fb1-55b16e4c4bb3","topic":"MULTICS","expanded":true,"children":[{"id":"1b214812-65da-4540-9828-ef3f9d22595c","topic":"UNIX","expanded":true,"children":[{"id":"a8b2ef6b-d653-4be4-9da8-03bba99b2950","topic":"LINUS","expanded":true},{"id":"6c1bcc78-232a-4899-bb5b-adb6d8891ebc","topic":"System","expanded":true,"children":[{"id":"c10a1c51-e96a-413b-a631-c9dc9e998ae9","topic":"Mac OS","expanded":true,"children":[{"id":"6629920f-35fd-41e2-9dc2-65d461f10ab5","topic":"iOS","expanded":true}]}]}]}]}]}]},{"id":"5e3b0ebb-436c-4fc8-a749-ead137ebf9cf","topic":"CP/M","expanded":true,"children":[{"id":"6cedb12f-fac3-4286-805f-08c649e302bb","topic":"QDOS","expanded":true,"children":[{"id":"0126cc14-c9fa-400c-811c-bf74f3d4ab2b","topic":"MS-DOS","expanded":true,"children":[{"id":"f85885f5-cdca-47cb-b09b-ada2a8b4a8b1","topic":"WINDOWS","expanded":true}]}]}]}]},{"id":"4827dc1b-a070-47f2-8849-d0d11082f2ee","topic":"王道版本","expanded":true,"style":{"borderColor":"#FF9F00"},"children":[{"id":"9be86a1d-dfba-4559-a0e5-480ea5ea4789","topic":"手工操作阶段","expanded":true,"children":[{"id":"37af55b6-1a66-43ce-97c8-f410c369f8d2","topic":"单道批处理阶段","expanded":true,"children":[{"id":"460a22e4-f279-446e-9601-aac565c6e6f1","topic":"多道批处理系统","expanded":true,"children":[{"id":"11d51394-8718-46a4-ba94-01db687ed4f7","topic":"分时操作系统","expanded":true,"children":[{"id":"a3b73e05-170a-4162-9064-022cbeaab3f6","topic":"实时操作系统","expanded":true,"children":[{"id":"89951c19-e205-4cb0-9d33-7e29703d6939","topic":"网络操作系统","expanded":true,"children":[{"id":"2138ec39-028a-452a-9b61-121dcd451cf4","topic":"分布式计算机系统","expanded":true,"children":[{"id":"7142b21f-ebe0-4cab-a39d-c2467bf3c035","topic":"个人计算机操作系统","expanded":true,"children":[{"id":"b69d5fc3-bc7b-43fd-9bef-8d295f5522fa","topic":"微型计算机操作系统","expanded":true}]}]}]}]}]}]}]}]},{"id":"9f22d634-f200-4a5a-8028-46dda466b123","topic":"所有工作需要人工干预","expanded":true,"children":[{"id":"3ab3a821-f42f-46ba-b1cc-b70305cd621d","topic":"自动性：作业自动执行","expanded":true,"children":[{"id":"84930e32-b6f2-4f97-895d-bf1fb1ba3e75","topic":"操作系统出现","expanded":true,"children":[{"id":"9fe5d54c-5979-44a2-96f5-2edb7c2a5de9","topic":"交互性强","expanded":true,"children":[{"id":"c1648b57-2b74-430a-9dc2-8cf51e0a0703","topic":"抢占式，优先级高者优先","expanded":true,"children":[{"id":"ece64a29-8d45-4e1a-b810-2020369d086b","topic":"服务于计算机网络，集中式控制方式","expanded":true,"children":[{"id":"a3f2a594-cdfd-4355-b039-29ab30db179f","topic":"并行工作，协同完成任务，无主从之分","expanded":true}]}]}]}]}]}]},{"id":"858abe12-4ba9-414e-a427-3bba9f89d757","topic":"用户独占全机，资源利用率低","expanded":true,"children":[{"id":"6e4171d4-b284-48b3-8419-575a1439ddf9","topic":"顺序性：作业依次执行","expanded":true,"children":[{"id":"2d39a2db-1814-4074-b089-78b3baecbae1","topic":"中断技术，无人机交互","expanded":true,"children":[{"id":"0b91280b-501c-47d7-a5da-c19ea3420156","topic":"要点","expanded":true,"children":[{"id":"090a46eb-801d-495e-af36-2f2b6e295aeb","topic":"及时，可靠，交互性不如分时","expanded":true}]}]}]}]},{"id":"55387ff0-bf74-4948-b15f-b615b52e7171","topic":"CPU等待手工操作，利用率低","expanded":true,"children":[{"id":"a1987f4f-11be-4d96-833e-56d9ba170a88","topic":"单道性：仅有一道程序执行","expanded":true,"children":[{"id":"899edaf6-a9d6-44b0-8649-ab89e07a36c4","topic":"宏观上并行，微观上串行","expanded":true,"children":[{"id":"6088abf1-6e91-4076-b359-3dcf5f9768f8","topic":"要点","expanded":true,"children":[{"id":"9da5bc71-f414-4a49-8a9a-2f25d10f399b","topic":"硬实时系统：飞机控制系统，导弹系统，机床控制系统\n软实时系统：订票系统","expanded":true}]}]}]}]}]}]},{"id":"fc9954af-1d01-42fd-aae5-99a6f0c47116","topic":"操作系统体系结构（新考点）","expanded":true,"style":{"borderColor":"#E32C2D"},"children":[{"id":"21958ed1-849e-43ad-bba8-6b26e5e5d747","topic":"分层结构","expanded":true,"children":[{"id":"b27b7b64-2c77-43ba-8b93-4e8b9433ae44","topic":"内核分多层，每层可单向调用更低一层提供的接口","expanded":true,"children":[{"id":"2afe150c-388c-4210-8d48-f42207420b54","topic":"便于调试和验证（逐层调试验证），易扩充维护","expanded":true},{"id":"d98ba7b5-7541-4bbc-b49a-87f104cc163a","topic":"难以定义各层边界，效率低，不可夸层调用","expanded":true}]}]},{"id":"6a24b6ea-cae8-49d2-92cf-fc69ca935280","topic":"模块化","expanded":true,"children":[{"id":"cd4fe25c-f0db-48a2-a2db-100bb0e02d6a","topic":"将内核分为多个模块，模块间相互协作，内核=主模块+可加载内核模块","expanded":true,"children":[{"id":"3a7d21d1-abba-48fa-91f9-ee20074d6ff6","topic":"易维护，可多模块同时开发；支持动态加载新的内核模块；任何模块可以直接调用其他模块","expanded":true},{"id":"96667c5b-c3e0-465f-9979-477bfb4731fc","topic":"模块间相互依赖，难以调试","expanded":true}]}]},{"id":"54f0c28a-4455-4f0b-8783-88446527d68b","topic":"宏内核（大内核）","expanded":true,"children":[{"id":"de3d7885-7259-4956-a758-d08eadb861e0","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-b5b6e5e753dc4a.png","width":262.41,"height":214.77},"children":[{"id":"3c755fd5-f9dd-4d31-aa33-f5fb4e709cb9","topic":"所有功能都放在内核中","expanded":true},{"id":"e9370a57-c820-4782-b307-13e359bddca1","topic":"性能高，内核内部功能可以互相直接调用","expanded":true},{"id":"b545fa35-a3c2-4059-b3ef-902175ff52d0","topic":"内核功能复杂，难以维护，内核某个功能模块出错，可能导致系统崩溃","expanded":true}]}]},{"id":"6cba4959-24e5-49a3-9fd7-5b3262c336eb","topic":"微内核","expanded":true,"style":{"borderColor":"#EB4D3D"},"children":[{"id":"1b07b03a-3c4a-4230-91d1-0615cef184b1","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-b64235dd3ccac9.png","width":276.5,"height":232.97},"children":[{"id":"b538c2f3-63a8-4cc7-8abb-776f81ad910b","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-6230a3dd9c2797.png","width":512.21,"height":160.13},"children":[{"id":"0088bc90-c2a8-4ed0-85c2-4aa366b8037a","topic":"只把中断、原语、进程通信等核心功能放入内核。进程管理、文件管理、设备管理等功能以用户进程的形式运行在用户态","expanded":true},{"id":"1407dd00-1e67-47c0-852c-a5ec03739945","topic":"内核小功能少、易于维护，可靠性高；功能模块崩溃不会导致整个系统崩溃","expanded":true},{"id":"971e8941-eeef-4a83-8bae-5858e7ec15a8","topic":"性能低不高效，需要频繁切换用户态/核心态，用户态下各功能模块不可以直接互相调用，只能内核的“消息传递”间接通信","expanded":true,"style":{"borderColor":"#EB4D3D"}},{"id":"ccd524ce-dda1-4e1d-a908-70f92a96f059","topic":"基于C/S模式","expanded":true}]}]}]},{"id":"4cd42c41-935d-4bbf-97f4-c9ae21c080e0","topic":"外核","expanded":true,"children":[{"id":"39651b7f-8440-4d4f-92db-b983a1674fde","topic":"内核负责进程调度、进程通信等功能，外盒负责为用户进程安全分配硬件资源","expanded":true,"children":[{"id":"3c8c1407-1b3d-4bd8-98bb-0b59e912b4f1","topic":"外核可直接给用户进程分配“不虚拟、不抽象”的硬件资源","expanded":true},{"id":"e2409987-347a-47d0-a081-011f531c8215","topic":"减少虚拟硬件资源的“映射层”，提升效率","expanded":true},{"id":"cce20926-c998-4ef1-8e28-45e797a13411","topic":"降低了系统一致性，系统复杂","expanded":true}]}]}]},{"id":"7b831a8a-167c-4168-9b60-f03ee290a87e","topic":"虚拟机（新考点）","expanded":true,"style":{"borderColor":"#E32C2D"},"children":[{"id":"cbc33dc4-e63a-4436-81a1-02ab41ccbfb1","topic":"第一类VMM","expanded":true,"children":[{"id":"5899c406-f58f-48d8-b7a6-547edbf47d79","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-f90705e39d4ca1.png","width":369.62,"height":246.63},"children":[{"id":"3eb28b05-ace8-40f2-96b9-23e2ced86dca","topic":"安装Guset OS时，VMM要在原本的硬盘上自行分配存储空间","expanded":true},{"id":"8f5277f9-0c5f-4210-bc3a-56c176342d0f","topic":"性能更好，可迁移性更差","expanded":true},{"id":"fe86c4ab-631c-41ba-8db8-e683efad59a7","topic":"第一类VMM运行在最高特权级，可以执行最高特权指令","expanded":true}]}]},{"id":"55269a95-3522-4f0c-8453-7663409204e6","topic":"第二类VMM","expanded":true,"children":[{"id":"5f3c8808-2c0f-4682-8a2c-626c37f50805","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-5d2eb7032d433d.png","width":359.98,"height":275.48},"children":[{"id":"fe1548bc-3d11-4f33-a004-d09c90da67a4","topic":"拥有自己的虚拟磁盘，实际上上Host OS文件系统中的一个大文件，分配到的是虚拟内存","expanded":true},{"id":"d6c402c2-9a29-4990-ace2-5af10ef67181","topic":"性能差，需要Host OS为中介","expanded":true},{"id":"8b7de4c0-b3f0-4bb0-ac64-a73010c52c94","topic":"第二类VMM部分运行在用户态，部分运行在内核态。Guest OS发出系统调用会被VMM截获，转化为VMM对Host OS的系统调用","expanded":true}]}]}]}]},"floatingNodes":[{"id":"245023fe-77db-4202-9bf4-919f0f175663","topic":"多进程实图","expanded":true,"x":1021.56,"y":-2126.74},{"id":"a80bbfe8-bd48-4742-8c84-06fc734ffb14","topic":"文件操作视图","expanded":true,"x":1054.65,"y":-2025.7},{"id":"b4ded44d-74c8-471d-8d5c-d07eff024445","topic":"互为存在条件（最基本特征）","expanded":true,"x":129.12,"y":-1974.48}],"relations":[{"id":"30c2c2c7-19e1-46f1-9ca8-c3ac5e5610c2","from":"245023fe-77db-4202-9bf4-919f0f175663","to":"e35c5495-8bcb-47c3-b6cf-c2c1c01263ab","bidirectional":false},{"id":"cc918bb6-f620-4803-9589-c05305ba6549","from":"245023fe-77db-4202-9bf4-919f0f175663","to":"cc1c47fc-1fa0-44c7-aba5-fe611b73a18a","bidirectional":false},{"id":"642552e8-70d5-4657-9b11-4d6c4abce287","from":"a80bbfe8-bd48-4742-8c84-06fc734ffb14","to":"de26ebe7-7bb4-4199-8923-4a8726057a15","bidirectional":false},{"id":"08a6c31a-b8a1-4b10-8988-09f4ad4a9551","from":"a80bbfe8-bd48-4742-8c84-06fc734ffb14","to":"db0adbf0-d463-4c33-b030-37c32b3dfa45","bidirectional":false},{"id":"0a0839cd-db48-456c-9604-2aac6f95757e","from":"a80bbfe8-bd48-4742-8c84-06fc734ffb14","to":"d75af19f-f611-4d88-9367-1fcdde97434e","bidirectional":false},{"id":"d492b8ff-fabd-40b4-a2c4-4dd18d548a2d","from":"b4ded44d-74c8-471d-8d5c-d07eff024445","to":"033e9245-1cec-4271-a0e5-1eddedb11ebb","bidirectional":false},{"id":"9f287f03-c870-48e8-a359-56c0af01f45f","from":"b4ded44d-74c8-471d-8d5c-d07eff024445","to":"c220cf3c-095b-48ef-8e47-3fed7fce651f","bidirectional":false}]}