The basic difference between reversible and irreversible processes is that in the reversible process the system remains in thermodynamic equilibrium,…