Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Bonerlang

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:54

SATAN QUALITY!

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]

Don't change these.
Name: Email:
Entire Thread Thread List