pthread_mutex_unlock takes 15x longer than pthread_mutex_lock
tomas@tuxteam.de
tomas@tuxteam.de
Mon Oct 2 06:47:00 GMT 2017
-----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-----
More information about the Libc-help
mailing list