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
Post a Comment