Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 May 2008 10:28:53 -0700
From:      Julian Elischer <julian@elischer.org>
To:        arch@freebsd.org
Subject:   all mutexes -> read-write locks?
Message-ID:  <483EE7D5.5050408@elischer.org>

next in thread | raw e-mail | index | archive | help
it has been mentioned several times that through the evolution of the
locking primitives it has come to be that mutexes and exclusively 
acquired reader-writer locks are almost the same in terms of  overhead
and that it might be a good move to define all mutexes to be
actually just that.

this would allow people to slowly go through the system, catching low
hanging fruit by converting some of the mutex operations to reader
acquisitions wherever a writer is not required, thus reducing general 
system contention.

Is there any thought on this?  Last I heard jhb had confirmed that it
was feasible..





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?483EE7D5.5050408>