|
|
| Author |
Message |
< Erlang ~ Message Queue Limits |
| bluefly |
Posted: Fri Jan 25, 2008 3:38 pm |
|
|
|
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? |
|
|
| Back to top |
|
| francesco |
Posted: Mon Jan 28, 2008 8:09 am |
|
|
|
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 |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
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
|
|
|