uCore-Tutorial-Guide-2023S/source/chapter5/3exercise.rst

22 lines
1.1 KiB
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

chapter5练习
==============================================
- 本节难度: **看似唬人,其实就那样**
本章任务
----------------------------------------
- ``make test BASE=1`` 执行 usershell然后运行 ``ch5b_usertest``
- 看懂 fork, exec, wait 的逻辑。结合课堂内容回答本章问答问题(最终写进 ch6 的报告)。
编程作业
---------------------------------------------
无。
问答作业
--------------------------------------------
1. fork + exec 的一个比较大的问题是 fork 之后的内存页/文件等资源完全没有使用就废弃了,针对这一点,有什么改进策略?
2. [选做] 其实使用了题(1)的策略之后fork + exec 所带来的无效资源的问题已经基本被解决了,但是今年来 fork 还是在被不断的批判,那么到底是什么正在"杀死"fork可以参考 `论文 <https://www.microsoft.com/en-us/research/uploads/prod/2019/04/fork-hotos19.pdf>`_ **注意**:回答无明显错误就给满分,出这题只是想引发大家的思考,完全不要求看论文,球球了,别卷了。