[parisc-linux] User space locks -- what's wrong

John David Anglin dave at hiauly1.hia.nrc.ca
Sun Jun 11 21:03:57 MDT 2006


> However, the mutex objects look like they are being cached? There
> could be a scenario where an allocated and locked mutex is put back in
> the cache, such a mutex cannot be cleaned without resetting with
> __PTHREAD_MUTEX_INITIALIZER.

Hmmm, that reminds me that there is this config variable in configure.host,
'slow_pthread_self'.

#   slow_pthread_self   The synchronization code should try to avoid
#                       pthread_self calls by caching thread IDs in a hashtable

There's also 'enable_hash_synchronization_default'.

Dave
-- 
J. David Anglin                                  dave.anglin at nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)



More information about the parisc-linux mailing list