Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #4772

Re: find if two threads are trying to operate on a same mutex?

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 <steve.removethis@Watt.COM>
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 <pucdb0$ke2$1@wattres.Watt.COM> (permalink)
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

Show key headers only | View raw


In article <10ef65a2-d11a-46d8-9cac-cd24c4183f6f@googlegroups.com>,
 <deepthibargav@gmail.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...

Back to comp.programming.threads | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

find if two threads are trying to operate on a same mutex? deepthibargav@gmail.com - 2018-11-28 21:16 -0800
  Re: find if two threads are trying to operate on a same mutex? Steve Watt <steve.removethis@Watt.COM> - 2018-12-07 00:02 +0000

csiph-web