I have an app which creates threads dynamically, and I need to know which thread is in running / suspend /ready state for any instance..
So would there be any way possible to do such run time accounting of all threads in any application?
Please reply for any pointer.
if you use begininvoke with delegates then you get return IAsyncResult value when it endinvoke so in between when you start the asynchronous call by begininvoke so you put entry in database for running when thread works its process when you put while loop for one thread waiting so its a ready and when IAsyncResult is arrived to endinvoke so its a suspend.
For more information refer following link: