现代操作系统第四版第二章部分习题(英文)

这篇博客包含了操作系统中关于中断处理为何使用汇编语言、线程是否能被时钟中断、进程列表重复对轮转调度的影响、时间片与上下文切换时间的关系、以及读者写者问题的不同策略等知识点的讨论和解答。适合初学者阅读和复习。
摘要由CSDN通过智能技术生成

绝大部分是上课期间的作业,可能后续会有补充,也可能没有
部分内容有参考(包括博客,随书的参考资料,课程资料等等),部分内容是自己写的
另,因为课程要求,所以作为作业上交的部分是用英文完成的,后续补充用英文还是中文看心情叭hhh
操作系统的初学者,如有疏漏或错误,欢迎指正
(^ _ ^)

3.On all current computers, at least part of the interrupt handlers are written in assembly language. Why?
Generally, high-level language do not allow access to CPU hardware, which is required during the interrupt. Actions such as saving the registers and setting the stack pointer can not be expressed in high-level languages such as C, so they are performed by a small assembly-language routine. In addition, the interrupt service routine needs to be executed as quickly as possible.

16.Can a thread ever be preempted by a clock interrupt? If so, under what circumstances? If not, why not?
User-level threads cannot be preempted by the clock unless the total n

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值