[erlang-questions] Global lock is unfair?

Ryan Stewart <>
Mon May 14 21:55:44 CEST 2018


My team has used global:set_lock() to implement a sort of simple mutex
system on a set of resources. It turns out that this function seems to have
no concept of fairness. One process might request a lock and not get it
until 20 other processes have requested and gotten said lock, out of
request order. Is there any easy way to do fair locking?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180514/88cd0a97/attachment.html>


More information about the erlang-questions mailing list