erlang-algorithms Ring algorithm ring.erl : An Erlang program that creates a ring of N processes and sends M times a token and a counter in the ring. ring_mutex.erl : Same as above but it uses a mutual exclusion.