multithreading - Get Process threads relationships in C# -


i have tried below mentioned code running process thread details.

process proc=process.getcurrentprocess();  var threads=proc.threads;  foreach (processthread pt in threads) {  //  code  } 

from above code can able list of threads , corresponding thread state, etc.

now requirement relationship between these threads ( 1 parent thread , child thread , relationship between them). please me , send me sample codes achieve requirement.

thank you.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -