KeWaitForSingleObject

Hi

In IFS documentation it is mentioned that KeWaitForSingleObject should not
wait for a nonzero interval at IRQL = DISPATCH_LEVE. KeDelayExecutionThread
should be running at IRQL <= APC_LEVEL.

Is there a way that i could delay the thread execution at DISPATCH_LEVEL??

Regards,
\Vishnu.

You better look at *ExInitializeWorkItem*. Work queues are for queuing items
to be served on a worker thread.

you can queue a work item with *DelayedWorkQueue *or *CriticalWorkQueue *to
set a priority for the specific item.

the worker thread will be in running at PASSIVE IRQ level so you will be
able to wait for inifite time.

Hope thats help

On 3/6/06, vishnu wrote:
>
> Hi
>
> In IFS documentation it is mentioned that KeWaitForSingleObject should
> not
> wait for a nonzero interval at IRQL = DISPATCH_LEVE.
> KeDelayExecutionThread
> should be running at IRQL <= APC_LEVEL.
>
> Is there a way that i could delay the thread execution at DISPATCH_LEVEL??
>
>
> Regards,
> \Vishnu.
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

Thanx for the quick reply.
I will try to explore that.

Regards,
Vishnu.
“Alex Green” wrote in message news:xxxxx@ntfsd…
You better look at ExInitializeWorkItem. Work queues are for queuing items to be served on a worker thread.

you can queue a work item with DelayedWorkQueue or CriticalWorkQueue to set a priority for the specific item.

the worker thread will be in running at PASSIVE IRQ level so you will be able to wait for inifite time.

Hope thats help

On 3/6/06, vishnu wrote:
Hi

In IFS documentation it is mentioned that KeWaitForSingleObject should not
wait for a nonzero interval at IRQL = DISPATCH_LEVE. KeDelayExecutionThread
should be running at IRQL <= APC_LEVEL.

Is there a way that i could delay the thread execution at DISPATCH_LEVEL??

Regards,
\Vishnu.


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@gmail.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

> Is there a way that i could delay the thread execution at DISPATCH_LEVEL??

You cannot. You must schedule a callback to be called later instead.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

> Is there a way that i could delay the thread execution at DISPATCH_LEVEL??

No. Any waiting function at DISPATCH_LEVEL will bugcheck the system.
You must do it without waiting.

L.