操作系统-中断和异常(中断作用 类型 内外中断 中断机制原理)
发布时间:2024年01月19日
总览

中断的作用
刚启动CPU上运行的是内核程序

中断类型

内中断的例子
当前执行指令非法是指参数有问题等其他原因

陷入指令是主动转换状态,但它并不是特权指令

外中断
时钟中断就是每隔一段时间中断一次,然后执行中断程序后会切换到用户态去执行其他程序,如此反复,可能多次时钟中断后又开始执行原程序
IO中断就是外部设备发出的,当输入或输出操作完成时(即IO操作完成或者设备工作完成),会发出中断信号

中断的分类
故障这节没涉及到,之后会有更详细的介绍

中断机制的基本原理
中断向量表的内容存储中断向量,中断向量的内容就是跳转到中断处理程序的指令

小结

文章来源:https://blog.csdn.net/llovewuzhengzi/article/details/135707267
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:chenni525@qq.com进行投诉反馈,一经查实,立即删除!