<div dir="ltr">That make sense, thanks!</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-21 18:10 GMT+04:00 Michael Klishin <span dir="ltr"><<a href="mailto:michael.s.klishin@gmail.com" target="_blank">michael.s.klishin@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 21 August 2014 at 18:07:33, Daniil Churikov (<a href="mailto:ddosia@gmail.com">ddosia@gmail.com</a>) wrote:<br>
> > Hello, I just spotted one counterintuitive thing for me: when<br>
> you send messages to process,<br>
> and then access it's mailbox via erlang:process_info(Pid,<br>
> messages), all messages you sent<br>
> is in the same order, oldest messages in the list's head!<br>
><br>
> Example:<br>
><br>
> self() ! m1,<br>
> self() ! m2,<br>
> self() ! m3,<br>
> {messages,[m1,m2,m3]} = erlang:process_info(self(), messages).<br>
><br>
> My expectations was that newest messages will be at the head of<br>
> the list.<br>
<br>
</div></div>How would old messages get a chance at being processed at high message<br>
rates, if the order wasn't FIFO? <br>
--<br>
@michaelklishin, <a href="http://github.com/michaelklishin" target="_blank">github.com/michaelklishin</a><br>
</blockquote></div><br></div>