Elixir language to solve operating system problem
Hint:
Also, since the names ":barber" and ":waitingroom" have been registered by the OS
for the pids of the Barber and WaitingRoom actors, use those names as the first argument to the send() function, rather than passing a self() return address in the messages themselves,
and using it as the first argument to send(). This will simplify your code.
Lastly, let's accept the size of the waiting room also as a command-line
argument to make the program more flexible. Thus, please use the
following main program:
Process.flag(:trap_exit, true)