开发者

how to see thread structure in .net?

开发者 https://www.devze.com 2022-12-24 04:08 出处:网络
Is this possible in .net to see visually ,thread structure those are running (in multithreading) ? if开发者_JS百科 yes , how can i see thatIf you are using Visual Studio, attach the debugger to your p

Is this possible in .net to see visually ,thread structure those are running (in multithreading) ? if开发者_JS百科 yes , how can i see that


If you are using Visual Studio, attach the debugger to your program and see the Threads window (CTRL+D, T).


In the Visual Studio 2010 Release Candidate there are a set of tools for visualizing the concurrency behavior of your application. See http://www.drdobbs.com/tools/220900288 for more information.


to show the thread window in vs2008, you have to be debugging the application,

to attach just start your application in debug (press f5) or attach to the process running your app by pressing ctrl-alt-p

all this is accessible from the debug menu, and debug->windows menu

once you are attached, it will show you a list of thread, the one you are in will have a yellow arrow, you can put name on threads to help sort them out, just press f2 to rename

you can just frm one thread to another or also freeze them, and then thaw, when needed

0

精彩评论

暂无评论...
验证码 换一张
取 消