首页
社区
课程
招聘
[求助]关于dipatch level
发表于: 2014-6-14 19:13 3831

[求助]关于dipatch level

2014-6-14 19:13
3831
单核cpu
随便写个驱动,KeRaiseIrql到DISPATCH_LEVEL
然后KeWaitForSingleObject等待20 秒
加载后,怎么在等待这段时间内,操作其它程序一点感觉不到受影响
按理说,DISPATCH_LEVEL的线程阻塞后,无法切换线程,系统应该没反应啊,求解

我将KeWaitForSingleObject,换成一个无限循环,系统就没反应了,看来KeWaitForSingleObject起到了切换线程的作用

结帖,谢谢

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 0
支持
分享
最新回复 (2)
雪    币: 209
活跃值: (143)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
Callers of KeWaitForSingleObject must be running at IRQL <= DISPATCH_LEVEL. However, if Timeout = NULL or *Timeout != 0, the caller must be running at IRQL <= APC_LEVEL and in a nonarbitrary thread context. (If Timeout != NULL and *Timeout = 0, the caller must be running at IRQL <= DISPATCH_LEVEL.)
2014-6-14 22:00
0
雪    币: 19
活跃值: (1086)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
Callers of KeWaitForSingleObject must be running at IRQL <= DISPATCH_LEVEL. However, if Timeout = NULL or *Timeout != 0, the caller must be running at IRQL <= APC_LEVEL and in a nonarbitrary thread context. (If Timeout != NULL and *Timeout = 0, the caller must be running at IRQL <= DISPATCH_LEVEL.)
2014-6-14 22:44
0
游客
登录 | 注册 方可回帖
返回
//