[erlang-questions] Global lock is unfair?

Michael Truog mjtruog@REDACTED
Mon May 14 22:41:26 CEST 2018


Use a single Erlang process.  It will only be able to handle a single message at a time (other messages will get queued in-order) and the behavior will be fair.


On 05/14/2018 12:55 PM, Ryan Stewart wrote:
> 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?
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180514/661ad058/attachment.htm>


More information about the erlang-questions mailing list