Path: csiph.com!news.mixmin.net!news.unit0.net!news.szaf.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!usenet-its.stanford.edu!usenet.stanford.edu!wattres.watt.com!not-for-mail From: Steve Watt Newsgroups: comp.programming.threads Subject: Re: find if two threads are trying to operate on a same mutex? Date: Fri, 7 Dec 2018 00:02:40 +0000 (UTC) Organization: Watt Consultants, San Jose, CA, USA Lines: 18 Message-ID: References: <10ef65a2-d11a-46d8-9cac-cd24c4183f6f@googlegroups.com> NNTP-Posting-Host: localhost.watt.com X-Trace: wattres.Watt.COM 1544140960 20930 127.0.0.1 (7 Dec 2018 00:02:40 GMT) X-Complaints-To: usenet@wattres.Watt.COM NNTP-Posting-Date: Fri, 7 Dec 2018 00:02:40 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: steve@Watt.COM (Steve Watt) Xref: csiph.com comp.programming.threads:4772 In article <10ef65a2-d11a-46d8-9cac-cd24c4183f6f@googlegroups.com>, wrote: >Hi All, > > >It would be of great help if someone could tell me how to find if two threads are trying to operate on a same mutex? > >I also want to find the entire communication that happens with respect to locks while the program is being run, The search term you're looking for is "mutex contention". The answer depends entirely on your operating environment. Windows? Linux? FreeBSD? MVS? Assuming something UNIX-like, valgrind is your friend. Inside a dog, it's too dark to read. -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.5" / 37N 20' 15.3" Internet: steve @ Watt.COM Whois: SW32-ARIN Free time? There's no such thing. It just comes in varying prices...