摘要:
Erlang 编程指南第四章 练习4-2编写一个程序,生成N个进程并相连成环,启动环后绕环发送M个消息,当收到退出消息后终止.ringStart(M,N,Message, Cp) -> io:format("ring start ~w|~w|~p~n",[M, N, Message]), if N > 0 -> Pid = spawn(test_pid, ringReader, [N, self(), yes, 0]), Pid ! {read, M, Message}; true -> Pid = Cp ... 阅读全文
posted @ 2013-07-14 16:20 bobolive 阅读(185) 评论(0) 推荐(0) 编辑