Add tags

Add tags to the following comment
以下のようにして実行します。

erlc para.erl 
erl -noshell -s para para -s init stop
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
-module(para).
-export([para/0]).

proc(Pid, []) -> Pid ! void;
proc(Pid, [Chr | Str]) ->
    io:format("~s", [[Chr]]),
    proc(Pid, Str).

para() ->
    Pid = self(),
    spawn(fun() -> proc(Pid, "0123456789") end),
    spawn(fun() -> proc(Pid, "ABCDEFGHIJ") end),
    receive _ -> receive _ -> void end end.

Add tags

The input will be splited to tags with space.

Index

Feed

Other

Link

Pathtraq

loading...