Operating System
文章平均质量分 91
Goal: Write an operating system from scratch, from real mode to bash, including the file system
NP_hard
这个作者很懒,什么都没留下…
展开
-
OS笔记1 进程与线程
文章目录前言进程的基本概念进程的属性内存模型的中的进程映像线程的基本概念进程间的组织关系进程与线程 前言 操作系统浩如烟海,而进程是OS中相当重要的一个概念,在阅读了lqm老师的进程控制的pdf之后,我打算进行一些自我总结与提炼,若有笔误,恳请指正。 进程的基本概念 进程的属性 一个进程含有多个属性,进程在linux系统中有一个结构体的定义,而这个结构体里包含了很多属性,主要有: 进程控制块 PCB (task_tsruct )( 在内核空间中 )(线程也有PCB!) 内存描述符 mm_struct (原创 2022-03-16 21:37:48 · 439 阅读 · 0 评论 -
MIT 6.S081 lab3 pagetable
参考 知乎:https://zhuanlan.zhihu.com/p/280914560 掘金:https://juejin.cn/post/7008487319976017928 实验指导书:https://pdos.csail.mit.edu/6.828/2020/labs/pgtbl.html 文章目录Print a page tableA kernel page table per process创建进程内核页表和内核栈切换到进程内核页表释放进程内核页表Simplify Print a pa.原创 2021-12-02 00:58:57 · 815 阅读 · 0 评论 -
MIT 6.S081 Lab2
文章目录System call traceSysinfo System call trace In this assignment you will add a system call tracing feature that may help you when debugging later labs. You’ll create a new trace system call that will control tracing. It should take one argument, an inte原创 2021-11-13 11:44:22 · 1455 阅读 · 0 评论 -
MIT 6.S081 Lab1
文章目录sleeppingpongprimes sleep #include"../kernel/types.h" #include"user.h" int main(int argc,char* argv[]) { if(argc != 2){ fprintf(2,"Usage: sleep [microseconds]\n"); exit(0); } int second=atoi(argv[1]); sleep(se原创 2021-11-09 21:39:31 · 1010 阅读 · 0 评论
分享