Get thread count in current process : Process « Development « VB.Net Tutorial






Imports System.Diagnostics
Module Module1

    Sub Main()
        Console.WriteLine("Thread Count: {0}", Process.GetCurrentProcess().Threads.Count)
    End Sub

End Module
Thread Count: 3








7.24.Process
7.24.1.Start process by setting file name
7.24.2.Get current Process
7.24.3.Display properties of current Process
7.24.4.Start main module in current process
7.24.5.Kill current process
7.24.6.Get thread count in current process
7.24.7.Get Process by ID
7.24.8.Print properties of Process
7.24.9.Open Default editor for text file
7.24.10.Start a processStart a process
7.24.11.List all process in a ListViewList all process in a ListView