The Threads window contains a table where each row describes a separate thread in your application. By default, the table lists all the threads in your application.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
2 Points
14 Posts
Number of threads in use
Nov 18, 2019 08:19 PM|ancio80pa|LINK
All-Star
48530 Points
18077 Posts
Re: Number of threads in use
Nov 18, 2019 09:08 PM|PatriceSc|LINK
Hi,
For the current process ? Try perhaps https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.threads?view=netframework-4.8
Contributor
3370 Points
1409 Posts
Re: Number of threads in use
Nov 19, 2019 06:23 AM|samwu|LINK
Hi ancio80pa,
You can use the Threads window. In the Threads window, you can examine and work with threads in the application that you're debugging.
For step-by-step guidance on how to use the Threads window, see Walkthrough: Debug by using the Threads window.
The Threads window contains a table where each row describes a separate thread in your application. By default, the table lists all the threads in your application.
More information about View threads in the Visual Studio debugger by using the Threads window you can refer to this link: https://docs.microsoft.com/en-us/visualstudio/debugger/walkthrough-debugging-a-multithreaded-application?view=vs-2019
Best regards,
Sam
Participant
1310 Points
442 Posts
Re: Number of threads in use
Nov 21, 2019 07:00 PM|deepalgorithm|LINK