A characterization of reversible Markov processes with applications to shared-resource environments