|Did you know ...||Search Documentation:|
|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.
write(Priority). The default
readpriority is 100 and the default
writepriority 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.