How to get the active thread count?

后端 未结 2 1858
孤城傲影
孤城傲影 2021-01-18 04:20

I have a program which calls a C++ library. The program processes has a large number of threads (50 - 60). Most of them seem to be created in C++ and I suspect most are susp

2条回答
  •  迷失自我
    2021-01-18 04:52

    You could use Process Explorer to inspect threads. It will tell you in realtime how much CPU each is consuming, and can give you individual stack traces, which will indicate what they are blocked on.

提交回复
热议问题