How to realize thread management of my own
-
In my app, many threads are created by BeingInvoke now. As all these threads are managed by ThreadPool, I can not get info about these backgroud threads. So I decided to create a thread manager of my own. In this case all the thread will not be run backgroud. What should I be careful with? Thank you for your advice!
-
In my app, many threads are created by BeingInvoke now. As all these threads are managed by ThreadPool, I can not get info about these backgroud threads. So I decided to create a thread manager of my own. In this case all the thread will not be run backgroud. What should I be careful with? Thank you for your advice!
I have read several articals and started to write my own code. As I want to keep in track with all the handlers of my threads so as to Abort them when necessary. How to inform my thread manager to remove the handler form thread queue before a thread is sure to finish. I can pass a delegate to every thread as that the thread can call it just before its end. Are there any other better methods? Thank you