p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional C# 5.0 and .NET 4.5.1 (http://p2p.wrox.com/forumdisplay.php?f=756)
-   -   How to check for Threads being Idle? (http://p2p.wrox.com/showthread.php?t=94705)

jpscarpa July 13th, 2015 08:39 AM

How to check for Threads being Idle?
I am trying to trigger some code, when an application has become idle.
Since it's a Multithreaded application, I would like to wait until all Threads are Idle (or is there a better way to do this)?

Since I do not have the Source Code of the application, I am wondering how I can "hook", to know when I can trigger my code.

I already have found the process Id, and thread id of all relevant threads.

Thanks in advance.


All times are GMT -4. The time now is 03:33 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.