Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

7 views
Skip to first unread message

deepth...@gmail.com

unread,
Nov 29, 2018, 12:16:39 AM11/29/18
to
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,

I came to know about this forum from some researcher. any inputs will be of immense help.


Regards,
Deepthi

Steve Watt

unread,
Dec 6, 2018, 7:02:42 PM12/6/18
to
In article <10ef65a2-d11a-46d8...@googlegroups.com>,
<deepth...@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...
0 new messages