Patch Package OTP 24.0.6 Released

Frank Muller frank.muller.erl@REDACTED
Sat Sep 4 09:55:37 CEST 2021


Cool, thanks!


> It is very easy:
>
>
> call(Process, CallArgs) ->
>    case process_info(Process, message_queue_len) of
>      {message_queue_len, Len} when Len < 1000 ->
>          gen_server:call(Process, CallArgs, 20000);
>      {message_queue_len, _} ->
>          {error, overloaded};
>      _ ->
>          {error, noproc}
>  end.
>
>
> This is not a production code and it can ruin performance on a
> multicore machine if many threads are trying to read
> message_queue_len.
> But somewhere we use something like this.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20210904/bc100dc3/attachment.htm>


More information about the erlang-questions mailing list