|Did you know ...
|library(rwlocks): Read/write locks
This library implements read/write locks on top of with_mutex/2. Read/write locks are synchronization objects that allow for multiple readers or a single writer to be active.
read priority is 100 and the default
priority is 200. These values prioritize writers over readers. Goal
may start if
Read/write locks are widely critized for their poor behaviour on several workloads. They perform well in scenarios where read operations take long, and write operations are relatively fast and occur only occasionally. Transactions, as implemented by transaction/1,2 are often a better alternative.
time_limit_exceeded(rwlock) if a timeout or deadline is
specified and this is exceeded.