- 1、本文档共7页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
操作系统课程作业 1
操作系统作业4
姓名,学号
1. Why is the separation of mechanism and policy desirable?
2. What are the two models of interprocess communication? What are the
strengths and weaknesses of the two approaches?
3. Including the initial parent process, how many processes are created by
the program shown in Figure 1?
Figure 1: Program for Question 3 .
操作系统课程作业 2
4. Explain the circumstances under which the line of code marked printf
(‘‘LINE J’’) in Figure 2 will be reached.
Figure 2: Program for Question 4 .
操作系统课程作业 3
5. Using the program in Figure 3, identify the values of pid at lines A, B,
C, and D. (Assume that the actual pids of the parent and child are 2600
and 2603, respectively.)
Figure 3: Program for Question 5 .
操作系统课程作业 4
6. Using the program shown in Figure 4 , explain what the output will be at
lines X and Y.
Figure 4: Program for Question 6.
操作系统课程作业 5
7. Which of the following components of program state are shared across
threads in a multithreaded process?
a. Register values
b. Heap memory
c. Global variables
d. Stack memory
8. A system with two dual-core processors has four processors available for
scheduling. A CPU-intensive application is running on this system. All
input is performed at program start-up, when a single file must be opened .
Similarly, all output is performed just before the program terminates,
when the program results must be written to a si
文档评论(0)