Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -module(client).
- -export([start/0]).
- start() ->
- spawn(?MODULE, loop, []).
- loop() ->
- receive
- allocate ->
- frequency ! {request, self(), allocate},
- loop();
- {release, Freq} ->
- io:fwrite("Allocated frequency: " ++ integer_to_list(Freq) ++ "\n")
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement