调试多线程应用程序 [英] Debugging multithreaded applications

查看:110
本文介绍了调试多线程应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用C ++和MFC编写的应用程序,它是在Windows上运行的多线程。偶尔我会得到一些投诉,如死锁或由于这些线程导致的未处理的异常。通常我使用visual studio(如果问题是可重现的)或者使用WinDbg来分析生成的转储文件。有没有更好的方法这样做?

I have an application written in C++ and MFC which is multithreaded running on windows. Occasionally I do get some complaints such as deadlocks or an unhandled exception which is caused because of these threads. Normally I use visual studio (if the problem is reproducible) or else use the WinDbg to analyse the dump files generated. Is there any better way of doing this? Can I use some other tools to do this?

推荐答案

我会推荐使用英特尔Thread Checker 如果你有足够的预算。

I would recommend the Intel Thread Checker if you have enough budget for it. It does a great job of analysing running programs and alerting you to possible race conditions.

查看演示视频了解更多信息。

这篇关于调试多线程应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆