PortIn a manner similar to processes, Ports should be considered. Ports are a datatype that encompasses all kinds of connections and sockets opened to the outside world: TCP sockets, UDP sockets, SCTP...
分类:
其他好文 时间:
2014-11-15 12:56:20
阅读次数:
295
ProcessesTrying to get a global view of processes is helpful when trying to assess how much work is being done in the VM in terms of tasks. A general good practice in Erlang is to use processes for tr...
分类:
系统相关 时间:
2014-11-15 11:28:38
阅读次数:
167
Thrift是facebook开发的用来处理各不同系统之间数据通讯的rpc服务框架,后来成为apche的开源项目。thrift支持多种程序语言,包括Java,Python,Ruby,JavaScript,Node.js,Go,C,C++,C#,Erlang,Delphi,Perl,Php,Small...
分类:
其他好文 时间:
2014-11-14 22:20:48
阅读次数:
446
timer作为其计时器: erlang的计时器timer是通过一个唯一的timer进程实现的,该进程是一个gen_server,用户通过timer:send_after和timer:apply_after在指定时间间隔后收到指定消息或执行某个函数,每个用户的计时器都是一条记录,保存在timer的.....
分类:
其他好文 时间:
2014-11-13 18:37:12
阅读次数:
943
一、概念: ????????Supervisor: 监控树 二、作用: ????????用于监控其它的进程是否正常运行 三、定义监控树的行为和被监控的进程: ????????1、整个监控树的重启策略:(如果一个进程停...
分类:
其他好文 时间:
2014-11-13 11:05:40
阅读次数:
140
怎么通过beam文件得到所有的record或源代码?1. 首先必须要在compile里面加上debug_info信息:1 > c(load,[debug_info]). {ok,load}2> beam_lib:chunks(code:wh...
分类:
其他好文 时间:
2014-11-11 00:42:46
阅读次数:
426
对流式模型的理解:
以鼠标移动拖拽为例,在原来的回调函数模型中,拖拽的动作被分散到mousedown/mousemove/mouseup等琐碎的处理中,
其中很多与拖拽本身无关的处理;
而在流式模型,只需要关心拖拽本身的处理逻辑。
在erlang中流式模型是基于进程实现,那在C语言中如何实现?...
分类:
其他好文 时间:
2014-11-09 23:53:55
阅读次数:
239
原创文章,转载请注明出处:服务器非业余研究http://blog.csdn.net/erlib 作者Sunface联系邮箱:cto@188.comSSH DaemonErlang/OTP comes shipped with an SSH implementation that can both act as a server and a client. Part of it is a demo...
分类:
系统相关 时间:
2014-11-09 11:21:37
阅读次数:
306
Named Pipes命名管道(Named Pipes)A little known way to connect with an Erlang node that requires no explicit distribution is through named pipes. This can be done by starting Erlang with run_erl, which wra...
分类:
其他好文 时间:
2014-11-09 11:19:15
阅读次数:
239
RemshThere’s a mechanism entirely similar to the one available through the JCL mode, although invoked in a different manner. The entire JCL mode sequence can by bypassed by starting the shell as follo...
分类:
其他好文 时间:
2014-11-09 11:19:02
阅读次数:
186