File tree 2 files changed +4
-4
lines changed
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
689
689
690
690
#### Architecture of SharedScheduler
691
691
692
- ![ bg right:60 % 95% arch] ( figs/arch.png )
692
+ ![ bg right:50 % 95% arch] ( figs/arch.png )
693
693
694
694
1 . 操作系统与用户程序各自的 Executor 维护协程
695
- 2 . SharedScheduler 通过 vDSO 共享给用户进程
695
+ 2 . SharedScheduler 通过 vDSO (virtual Dynamic Shared Object) 共享给用户进程
696
696
3 . 通过 Global Bitmap 进行操作系统与用户进程之间协调调度
697
697
698
698
<!--
Original file line number Diff line number Diff line change @@ -713,12 +713,12 @@ pub struct TaskControlBlockInner {
713
713
714
714
pub struct OSInode {// 进程管理的inode
715
715
readable : bool , writable : bool ,
716
- inner : UPSafeCell <OSInodeInner >,
716
+ inner : UPSafeCell <OSInodeInner >,// 多线程并发安全
717
717
}
718
718
719
719
pub struct OSInodeInner {
720
720
offset : usize , // 文件读写的偏移位置
721
- inode : Arc <Inode >,// 存储设备inode
721
+ inode : Arc <Inode >,// 存储设备inode,线程安全的引用计数指针
722
722
}
723
723
```
724
724
![ bg right:42% 95%] ( figs/fs-fsdisk.png )
You can’t perform that action at this time.
0 commit comments