关于Windows中断的一点疑惑

最近在看微软的IRQL_thread,其中有关中断的几个地方不能太确定,先寒一个

A thread’s scheduling priority and the processor’s current IRQL determine whether a running thread can be pre-empted or interrupted. In thread pre-emption, the operating system replaces the running thread with another thread, usually of higher thread priority, on the same processor. The effect of pre-emption on an individual thread is to make the processor unavailable for a while. In thread interruption, the operating system forces the current thread to temporarily run code at a higher interrupt level. The effect of interruption on an individual thread is similar to that of a forced procedure call.

上面这段话中红色文字的意思是说,在线程内部发生中断的时候只是将该线程提升到更高的中断级别下运行,效果就相当于一个函数调用。

An interrupt request level (IRQL) defines the hardware priority at which a processor operates at any given time. In the Windows Driver Model, a thread running at a low IRQL can be interrupted to run code at a higher IRQL.

 上面这段话的意思是一个中断请求级别定义了在任何时刻一个处理器工作的硬件优先级。在Windows驱动模型中,运行在低级别IRQL的线程能够被中断去执行更高IRQL的代码。

现在还不能确定的是,当中断发生的时候线程是否被调度出处理器?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值