In C #, how to check the thread from the threadpool is it a worker thread or an I / O thread?

Whether it is possible to recognize the stream is worker or I / O.

I know the code

Thread.CurrentThread.IsThreadPoolThread

      

this code should show if it is a thread pool thread, but there doesn't seem to be a way to show if it is a worker thread.

How can I check this? Is it possible?

+3


source to share


1 answer


There is no difference between threads other than the pool they were / are in, as you can read here: Simple Description of Worker and I / O Threads in .NET



Thread doesn't know about the bullet it came from. Therefore it is not possible.

+1


source







All Articles