您的位置:首页 > 其它

ISR和DPC

2016-03-17 17:53 471 查看
ISR:Interrupt Service Routines (中断服务例程

必须马上做的事情,比如硬件中断,响应鼠标点击

DPC:Deferred Procedure Call Details(延迟过程调用

可以推迟做的事情,比如大数据拷贝,U盘拷贝电影。

APC: Asynchronous Procedure Calls(异步过程调用

An asynchronous procedure call (APC) is a function that executes asynchronously in the context of a particular thread. When an APC is queued to a thread, the system issues a software interrupt. The next time the thread is scheduled, it will run the APC function. An APC generated by the system is called a kernel-mode APC. An APC generated by an application is called a user-mode APC. A thread must be in an alertable state to run a user-mode APC.

Windows中断请求级别

IRQLInterrupts Masked OffDriver Routines
PASSIVE_LEVELNonePASSIVE_LEVEL
APC_LEVELAPC_LEVEL interruptsAPC_LEVEL
DISPATCH_LEVELDISPATCH_LEVEL ,APC_LEVEL interruptsDISPATCH_LEVEL
DIRQLAll interrupts at IRQL<= DIRQLDIRQL

参考

Managing Hardware Priorities

IRQL

Deferred Procedure Call Details(延迟过程调用详解)

Asynchronous Procedure Calls
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: