Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Erlang (BEAM) emulator version 5.6.5 [source] [smp:2] [async-threads:0] [hipe] [kernel-poll:false]
- Eshell V5.6.5 (abort with ^G)
- 1> c("/Users/mark/Projects/erlang/excercises/parallel/ex3.erl", [{outdir, "/Users/mark/Projects/erlang/excercises/parallel"}]).
- {ok,ex3}
- 2> ex3:start(foo, fun ex3:loop/0).
- yes
- 3> ex3:start(foo, fun ex3:loop/0).
- Function already registered.
- ok
- 4> global:send(foo, { print, "whee!" }).
- whee!
- <0.37.0>
- 5> global:send(foo, { print, "whee!" }).
- whee!
- <0.37.0>
- 6> global:send(foo, exit).
- <0.37.0>
- 7> ex3:start(foo, fun ex3:loop/0). yes
- 8> global:send(foo, { print, "alive again!" }).
- alive again!
- <0.43.0>
Add Comment
Please, Sign In to add comment