monitor message queue of a process
Wed Apr 21 19:26:43 CEST 2010
i would like to know if there's a native way to monitor and react on a
message queue of a process, without the need to modify the process
it's quite easy to get the message queue length using
erlang:process_info/2, however i would need this monitoring done not
in a polling-way [which would periodically check for this
information], but i would love to have some kind of a message when the
queue length is modified and satisfies some requisites.
i'm trying to figure out a way to provide some kind of generic
buffering technique to solve selective receives' snowball effect that
is being discussed so much lately.
More information about the erlang-questions