This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pthread_mutex_unlock takes 15x longer than pthread_mutex_lock


-----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-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]