Nowadays, most ventilation and air-conditioning systems are equipped with a heat exchanger, whereby their energy efficiency is significantly improved.
The inlet gas/liquid is usually separated from the outlet gas/liquid to prevent mixing, though some systems allow the media to be in contact with each other.
In the air-handling unit the heat exchanger ensures that the heat from the used room air is recovered and returned to the fresh supply air.