none
Question on KeDelayExecutionThread ... RRS feed

  • Question

  • Hi:

    I'd like to know what could happen when system is shuting down and KeDelayExecutionThread is been called/executing ?  Will it cause system to hang ?

    Thanks in advance.


    leo

    Friday, June 23, 2017 8:40 PM

Answers

  • To throw the question back at you, what are you trying to do?  If you have a thread in your driver that is wishes to delay for a long time, you might consider using KeWaitForSingleObject with a timeout, and the object being an event that you can signal that Unload is being called.  Just waiting is not a good thing, and depending on the amount of time, may cause a BSOD.


    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

    • Marked as answer by SJ-Hills Friday, June 23, 2017 8:55 PM
    Friday, June 23, 2017 8:51 PM

All replies

  • To throw the question back at you, what are you trying to do?  If you have a thread in your driver that is wishes to delay for a long time, you might consider using KeWaitForSingleObject with a timeout, and the object being an event that you can signal that Unload is being called.  Just waiting is not a good thing, and depending on the amount of time, may cause a BSOD.


    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

    • Marked as answer by SJ-Hills Friday, June 23, 2017 8:55 PM
    Friday, June 23, 2017 8:51 PM
  • I'm trying to debug a system hang issue. Thanks for your response.

    leo

    Friday, June 23, 2017 8:55 PM
  • KeDelay by itself won't cause a hang

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Saturday, June 24, 2017 6:52 AM