OS lab5

作者: pochi_ | 来源:发表于2019-06-06 00:40 被阅读0次

Ex1
所以一开始为什么要comment掉啊,我忘记comment out回来了
eflag设置为FL MASK即可

Ex2
第一题
依次round,map,read
注意read的大小是block/sector
第二题
根据注释写几个判断即可
注意重新置位的代码可见第一题后面的给的(

Ex3
遍历bitmap
异或一下把找到的空block置上
flush

Ex4
file_block_walk通过一个在文件内的偏移,映射结构体所直接指向的块或者间接指向的块。
file_get_block更及进一步地映射实际的磁盘块,如果有必要的话分配一个新磁盘块。

Ex8
We will establish the convention that if a page table entry has this bit set, the PTE should be copied directly from parent to child in both fork and spawn. Note that this is different from marking it copy-on-write: as described in the first paragraph, we want to make sure to share updates to the page.

相关文章

  • OS lab5

    Ex1所以一开始为什么要comment掉啊,我忘记comment out回来了eflag设置为FL MASK即可 ...

  • 操作系统实验:Lab5 用户进程管理

    清华大学操作系统Lab5实验报告课程主页:http://os.cs.tsinghua.edu.cn/oscours...

  • 硬件上机第五次实验

    LAB5 3.56 题目描述 consider the following assembly code x a...

  • Lab5

    Lab5 report 练习0:填写已有实验 用meld对比修改了以下文件: 其中需要对trap.c和proc.c...

  • lab5

    先checksec 一波 开启了NX保护,静态链接,溢出的空间也够构造rop链,一看就是return to sys...

  • Lab5 : uC/OS室温计 - 快来再点个灯

    实验环境为Window10 + Keil 5.18,代码中使用标准库。 实验准备 本次实验硬件上需要七段数码管LG...

  • COMP9311 Database Systems Lab6

    练习使用plpgsql建立trigger规则。使用的材料与lab5一致: schema文件如下: What is ...

  • 清华大学操作系统课程 ucore Lab5 用户进程管理 实验报

    操作系统 Lab5 用户进程管理 实验报告 课程信息所在网址:https://github.com/chyyuu/...

  • UCore lab5

    OS课程 ucore_lab5实验报告 练习零:填写已有实验   本实验依赖实验1/2/3/4。请把你做的实验1/...

  • lab5: lazy copy

    通常,用户程序使用 sbrk 进行内存扩容,这里存在两个问题 用户频繁调用 sbrk,如果每次都进行内存分配,耗费...

网友评论

      本文标题:OS lab5

      本文链接:https://www.haomeiwen.com/subject/vlojtctx.html