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?

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 2018-12-07 00:02 +0000
Organization Watt Consultants, San Jose, CA, USA
Message-ID <pucdb0$ke2$1@wattres.Watt.COM> (permalink)
References <10ef65a2-d11a-46d8-9cac-cd24c4183f6f@googlegroups.com>

Show all headers | 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