I have launched a performance wizard in VS2010 to audit thread concurrency in my Application.
Is there a way to identify exactly what specific threads "Worker Threads开发者_如何学Go" point to in my app ?
Indeed, I launch worker threads. Is there a way to name them and/or timestamp same logical thread that is launched many times. (Am I using this right or is it a loony idea ?)This would allow me to identify threads which cause high Cross-Core context switches and take action (right ? )
Depending on how you are creating your threads it is possible to name them
See this msdn page for details of the Thread.Name property
精彩评论