Third-party send to active and passive TCP sockets

Ulf Wiger etxuwig@REDACTED
Thu Oct 28 10:01:22 CEST 1999

On Wed, 27 Oct 1999, Jim Larson wrote:

jim>Does the Erlang process scheduler look at the depth of message
jim>queues in order to avoid overflows?

No, the scheduler doesn't, but then again, the message queues don't usually
overflow, since they are dynamically resized.

You can perform the check yourself, using 

  process_info(Pid, message_queue_len) -> {message_queue_len, L}

which is a very fast operation. This can be used for simple load
regulation, based on the assumption that if a process has e.g. > 100
messages in its queue, it may be falling behind.


Ulf Wiger, Chief Designer AXD 301         <ulf.wiger@REDACTED>
Ericsson Telecom AB                          tfn: +46  8 719 81 95
Varuvägen 9, Älvsjö                          mob: +46 70 519 81 95
S-126 25 Stockholm, Sweden                   fax: +46  8 719 43 44

More information about the erlang-questions mailing list