This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: pthread_mutex_unlock takes 15x longer than pthread_mutex_lock
- From: <tomas at tuxteam dot de>
- To: libc-help at sourceware dot org
- Date: Mon, 2 Oct 2017 08:47:20 +0200
- Subject: Re: pthread_mutex_unlock takes 15x longer than pthread_mutex_lock
- Authentication-results: sourceware.org; auth=none
- References: <CAL06n0_AzTHEsZo=hnK0aChO9RkwC2kc+yG+uwfT9QxKcgMzeA@mail.gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sun, Oct 01, 2017 at 04:20:37PM -0400, Akash Baid wrote:
> Hi,
>
> I have a packet processing application which takes and releases a
> pthread_mutex_lock for every packet [...]
> The application is using libpthread dynamic shared library, glibc
> version 2.13 on a x86_64 GNU/Linux VM on an Intel Xeon E5 2.5Ghz processor
> machine.
I barely know what I'm talking about, but I guess the type of mutex (fast,
recursive, error check, etc.) does matter wrt. that behaviour. Whoever
might jump in to help you might wish to know that.
Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlnR4PgACgkQBcgs9XrR2kb+dgCeM7YMKyKF91Txq+Vl8ZTPkNHK
DT0Ani3O+pgvoiEDFVydZvby3M++UneM
=yE21
-----END PGP SIGNATURE-----