views:

25

answers:

1

alt text

When I continuously do "step into",it switches between different threads.

But how's that scheduled in visual studio,how does it know which thread to activate for next instruction?

+1  A: 

It's not up to Visual Studio which thread runs next, it's up to the Windows scheduler. There's usually a way to "freeze" the other threads in the process so that they won't run while you're trying to look at a particular thread, though I don't know how to do it in Visual Studio.

-scott

snoone
right-click, freeze. You can do that on multiple selected threads too.
Bahbar