For a reversible process, necessary condition is
In the whole cycle of the system, the loss of any type of heat energy should be zero
That the process should be too fast
That the process should be slow so that the working substance should remain in thermal and mechanical equilibrium with the surroundings
The loss of energy should be zero and it should be quasistatic
For a reversible process
∫dQT=0