Erlang Mailing Lists

Author Message

<  Erlang  ~  Message Queue Limits

bluefly
Posted: Fri Jan 25, 2008 3:38 pm Reply with quote
User Joined: 06 Jan 2008 Posts: 10
I understand that if there are no matches in my receive block, a message is placed in a save queue until a valid message match appears in the future. How large is the save queue? If I spam my victim process with messages, will the messages eventually fall off the end, or will they just stack up until I am out of memory, or is there an option C here?
View user's profile Send private message
francesco
Posted: Mon Jan 28, 2008 8:09 am Reply with quote
User Joined: 07 Jul 2006 Posts: 249 Location: London
The mailbox size will continue to grow until the VM runs out of memory. This problem is solved in OTP behaviours, where through a callback mechanism, you have to handle the messages in the order in which they arrive, removing selective receives.

Francesco
--
http://www.erlang-consulting.com
View user's profile Send private message Visit poster's website

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum