[erlang-questions] few questions: common sense is not so common

db <>
Wed May 7 17:51:06 CEST 2008


I have few questions that need be cleared up.  Here they are:

q1) How come there isn't a way to empty the gen_server mailbox?  I
have seen only pattern matching for desired messages.

q2) I need a way to provide a wrapper around a another gen_server
module, what is the recommended approach?  (Start the both gen_servers
and use wrapper as a proxy messenger to the other gen_server).

q3) Do you advice using sequential receives?  (I have a process that
does the gathering.  It waits for so certain # of processes to send
reduced results and then forwards the final gathered result to another
process.  Gather process then loops over for another set of new

q4) Sending large list of tuple as messages, 1000 elements, between
processes on remote nodes be a wise approach?

Thank you,

-Ralph Waldo Emerson

More information about the erlang-questions mailing list