Whether or not a read/write lock is fair; defaults to true.
A non-fair read/write lock will always acquire read locks immediately if other read locks are already held.
A fair read/write lock will let pending write locks take precedence over new read locks. This prevents readers from blocking writers indefinitely.
Whether or not a read/write lock is fair; defaults to
true
. A non-fair read/write lock will always acquire read locks immediately if other read locks are already held. A fair read/write lock will let pending write locks take precedence over new read locks. This prevents readers from blocking writers indefinitely.