File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -689,10 +689,10 @@ fn main() { //Asynchronous multi-threaded concurrent webserver
689689
690690#### Architecture of SharedScheduler
691691
692- ![ bg right:60 % 95% arch] ( figs/arch.png )
692+ ![ bg right:50 % 95% arch] ( figs/arch.png )
693693
6946941 . 操作系统与用户程序各自的 Executor 维护协程
695- 2 . SharedScheduler 通过 vDSO 共享给用户进程
695+ 2 . SharedScheduler 通过 vDSO (virtual Dynamic Shared Object) 共享给用户进程
6966963 . 通过 Global Bitmap 进行操作系统与用户进程之间协调调度
697697
698698<!--
Original file line number Diff line number Diff line change @@ -713,12 +713,12 @@ pub struct TaskControlBlockInner {
713713
714714pub struct OSInode {// 进程管理的inode
715715 readable : bool , writable : bool ,
716- inner : UPSafeCell <OSInodeInner >,
716+ inner : UPSafeCell <OSInodeInner >,// 多线程并发安全
717717}
718718
719719pub struct OSInodeInner {
720720 offset : usize , // 文件读写的偏移位置
721- inode : Arc <Inode >,// 存储设备inode
721+ inode : Arc <Inode >,// 存储设备inode,线程安全的引用计数指针
722722}
723723```
724724![ bg right:42% 95%] ( figs/fs-fsdisk.png )
You can’t perform that action at this time.
0 commit comments