Ring Algorithm In Distributed System