绝大部分是上课期间的作业,可能后续会有补充,也可能没有
部分内容有参考(包括博客,随书的参考资料,课程资料等等),部分内容是自己写的
另,因为课程要求,所以作为作业上交的部分是用英文完成的,后续补充用英文还是中文看心情叭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