Hi
If you have an appropriate program, you can see the
thread status switching. It should be a program, that
does some intensive calculation for a while (perfmon
takes snapshots), and waits for some user interaction.
I did write a little extremely ugly program (in vb.net),
which exactly does this. Using perfmon (add thread.thread state
and choose the threads of this executable)
Code:Dim j, l As Integer Dim a As Integer While (True) For l = 1 To 1000000 For j = 1 To 10 Try a = Pow(l Mod 5, j) Catch ex As Exception MsgBox(ex.Message) End Try Next Next MsgBox("Hello World!") End While
Cheers




Reply With Quote