Guest User

Untitled

a guest
Feb 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. Erlang (BEAM) emulator version 5.6.5 [source] [smp:2] [async-threads:0] [hipe] [kernel-poll:false]
  2.  
  3. Eshell V5.6.5 (abort with ^G)
  4. 1> c("/Users/mark/Projects/erlang/excercises/parallel/ex3.erl", [{outdir, "/Users/mark/Projects/erlang/excercises/parallel"}]).
  5. {ok,ex3}
  6. 2> ex3:start(foo, fun ex3:loop/0).
  7. yes
  8. 3> ex3:start(foo, fun ex3:loop/0).
  9. Function already registered.
  10. ok
  11. 4> global:send(foo, { print, "whee!" }).
  12. whee!
  13. <0.37.0>
  14. 5> global:send(foo, { print, "whee!" }).
  15. whee!
  16. <0.37.0>
  17. 6> global:send(foo, exit).
  18. <0.37.0>
  19. 7> ex3:start(foo, fun ex3:loop/0). yes
  20. 8> global:send(foo, { print, "alive again!" }).
  21. alive again!
  22. <0.43.0>
Add Comment
Please, Sign In to add comment