目 录
实验一 进程控制 ..............................................................3
一、实验目的:............................................................3
二、实验平台:............................................................4
三、实验内容:............................................................4
实验结果..................................................................5
单线程执行结果:..........................................................7
实验总结..................................................................8
实验二 进程同步 ..............................................................8
一、实验目的:............................................................8
二、实验平台:............................................................8
三、实验内容:............................................................9
执行结果.................................................................12
实验总结.................................................................12
实验三 添加内核模块 .........................................................12
一、实验目的:...........................................................12
二、实验平台:...........................................................13
三、实验内容:...........................................................13
readprocess.c 代码: .....................................................14
Makefile 代码: ..........................................................15
processinfo 文件源代码: .................................................17
Makefile 文件源代码: ....................................................18
实验总结.................................................................20
实验四 统计操作系统缺页次数 .................................................20
实验目的.................................................................20
实验内容.................................................................21
实验过程.................................................................21
1. 修改内核源代码,添加统计变量..........................................21
2. 配置编译新内核........................................................23
3. 编译内核和模块........................................................24
4. 安装新内核模块和新内核................................................24
5. 编写读取 pfcount 值的模块代码..........................................25
6.编译、构建内核模块.....................................................26
7.加载模块到内核中.......................................................26
实验总结.................................................................27
实验五 EXT4 文件系统结构分析.................................................27
一、实验目的:...........................................................27
二、实验平台:...........................................................27
三、实验内容:...........................................................27
实验总结.................................................................31