Fair-Mutex

fair-mutex is a Go implementation of a fair RW mutex; that is, a mutex where write locks will not be prevented in a high volume read-lock use case. The larger the number of write locks required, the larger the performance benefit over sync.RWMutex. This is perhaps a fairly narrow use-case; if you don’t need this then consider using go-lock if the built-in sync.RWMutex or sync.Mutex do not meet your needs. To see if fair-mutex might meet your needs, start by looking at the benchmark results.

This implementation can be used as functional a drop-in replacement for Go’s sync.RWMutex or sync.Mutex as at Go 1.25 (with limitations - please see below...

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help