Ring Based Algorithm In Distributed System Each Processor