November 19th Thursday
来源:互联网 发布:数据分析采用方法 编辑:程序博客网 时间:2024/05/01 22:41
The receive work in Erlang is following:
- When we enter a receive statement, we start a timer (but only if an after section is present in the expression).
- Take the first message in the mailbox and try to match it against Pattern1, Pattern2, and so on. If the match succeeds, the message is removed from the mailbox, and the expressions following the pattern are evaluated.
- If none of the patterns in the receive statement matches the first message in the mailbox, then the first message is removed from the mailbox and put into a “save queue.” The second message in the mailbox is then tried. This procedure is repeated until a matching message is found or until all the messages in the mail-box have been examined.
- If none of the messages in the mailbox matches, then the process is suspended and will be rescheduled for execution the next time a new message is put in the mailbox. Note that when a new message arrives, the messages in the save queue are not rematched; only the new message is matched.
- As soon as a message has been matched, then all messages that have been put into the save queue are reentered into the mailbox in the order in which they arrived at the process. If a timer was set, it is cleared.
- If the timer elapses when we are waiting for a message, then evaluate the expressions ExpressionsTimeout and put any saved messages back into the mailbox in the order in which they arrived at the process.
- November 19th Thursday
- November 5th Thursday
- November 12th Thursday
- November 26th Thursday
- 2008 November 13th Thursday (十一月 十三日 木曜日)
- 2008 November 20th Thursday (十一月 二十日 木曜日)
- 2008 November 27th Thursday (十一月 二十七日 木曜日)
- 25 November 2010 Thursday
- Aprial 19th Thursday (四月 十九日 木曜日)
- July 19th Thursday (七月 十九日 木曜日)
- November 1t h Thursday
- August 6th Thursday
- August 13th Thursday
- September 10th Thursday
- September 17th Thursday
- September 24th Thursday
- December 9th Thursday
- November 3th Tuesday
- java exception java异常汇总2009-11-18
- java exception java异常汇总2009-11-18
- 布线工程师谈PCB设计!
- Tomcat5的数据库连接池配置
- Your Uninstaller 2008 软件介绍及注册码
- November 19th Thursday
- Reading Notes on NS2(10)
- 几条有用的Sql语句
- MyEclipse 5.5 GA 注册码 能用的
- html中文本过长如何自动省略。。
- AspNetPager分页控件的使用
- 彻底明白Java的IO系统
- OnPaint()与OnDraw()
- Google 真是无可救药