Last post Nov 21, 2019 07:00 PM by deepalgorithm
Nov 18, 2019 08:19 PM|ancio80pa|LINK
Nov 18, 2019 09:08 PM|PatriceSc|LINK
For the current process ? Try perhaps https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.threads?view=netframework-4.8
Nov 19, 2019 06:23 AM|samwu|LINK
is there a way to see how many threads are in use during a code execution in debug mode?
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
Nov 21, 2019 07:00 PM|deepalgorithm|LINK
int threadCount = Process.GetCurrentProcess().Threads.Count;