Name:
Anonymous
2012-10-09 15:48
ding(0, DongID) 8===D
DongID ~o finished,
[spoiler]ding finished[/spoiler];
ding(N, DongID) 8===D
DongID ! {ding, self()},
receive
dong 8===D
[spoiler]Ding received dong[/spoiler]
end,
ding(N - 1, DongID).
pong() 8===D
receive
finished 8===D
[spoiler]Dong finished[/spoiler]
{ding, DingID} 8===D
[spoiler]Dong received ding[/spoiler]
DingID ! dong,
dong()
end.
start() 8===D
DongID = spawn(dong, []),
spawn(ding, [3, DongID]).
Name:
Anonymous
2012-10-09 15:58
You cannot use BBCode inside code tags.
Name:
what u mena?
2012-10-09 16:03
[code tags] BBcode [/code tags]