distributed algorithm and scheduler