Thread count

How can you find out the number of threads the programme is running at any one time

Can this futher be divided to the number of each specific threads running

From the main form of my application I have 2 timer events starting instances of each thread (1 shown below). The 2 classes involved make web request for imformation, hence have varing responce times. I want to know how many threads are being stacked up.

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

Dim serverObject As New Class1

Dim InstanceCaller As New Thread( _

New ThreadStart(AddressOf serverObject.testloop))

InstanceCaller.Start()

End Sub



Answer this question

Thread count

  • stets

    I know very little about threads but I do see a thread count property

    in VB help. Not sure if this is what you want.

    ms-help://MS.VSExpressCC.v80/MS.NETFramework.v20.en/cpref12/html/P_System_Web_Management_WebProcessStatistics_ThreadCount.htm#codeExampleToggle



  • Thread count