In many systems, it's common to use a partitioned lock to reduce contention. Rather than a single hash table, for example, we could split the hash table across a number of partitions and perform a hash to determine the partition of a key, then use. In this way, rather than wrapping a hash table with a single read-write lock, we can split up the hash table by a number of partitions and lock only segments of the hash table at once.
-
Notifications
You must be signed in to change notification settings - Fork 0
A Partitioned Read-Write Lock Library compatible with POSIX and libuv Threads
License
jonahharris/prwlock
About
A Partitioned Read-Write Lock Library compatible with POSIX and libuv Threads
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published