Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging multithreaded applications [duplicate]

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?

like image 918
Naveen Avatar asked Mar 01 '23 22:03

Naveen


1 Answers

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.

Check out the demonstration video for more info.

like image 81
cmcginty Avatar answered Mar 12 '23 16:03

cmcginty