分析和 RtlUserThreadStart
我正在使用软件“Sleepy”分析我的多线程应用程序。我的线程是通过 Windows API 使用线程池创建的。
在分析时,它显示在以下功能上花费了大量时间:
- RtlUserThreadStart(花费的时间:46% 独占,100% 包含)
- ZwWaitForMultipleObjects(23% 独占,23% 包含)
- NtWaitForMultipleOvjects(15.4% 独占,15.4% 包含)
- NtDelayExecution(7.7% 独占,7.7% 包含)
- TpWaitForWork(5.8% 独占,5.8% 包含)
- 我的实际计算(大约含2%)。
但是,我不确定这些线程处理函数实际上是我的计算结果还是只是一些“浪费时间”(RtlUserThreadStart 是否正是我的回调函数的入口点,在这种情况下多线程会很好?)。
总之,这些数据是否说明我的多线程没用呢?
谢谢 !
I am profiling my multi-threaded application with the software "Sleepy". My threads are created through the windows API using a thread pool.
While profiling, it shows a very high amount of time spent in the following functions :
- RtlUserThreadStart (time spent : 46% exclusive, 100% inclusive)
- ZwWaitForMultipleObjects (23% exclusive, 23% inclusive)
- NtWaitForMultipleOvjects (15.4% exclusive, 15.4% inclusive)
- NtDelayExecution (7.7% exclusive, 7.7% inclusive)
- TpWaitForWork (5.8% exclusive, 5.8% inclusive)
- my actual computations (about 2% inclusive).
However, I am not sure whether these thread handling functions are in fact the result of my computations or just some "wasted time" (is RtlUserThreadStart exactly the entry point of my callback functions, in which case the multithreading would be good ?).
In short, does these data show that my multi-threading is useless or not ?
Thanks !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论