The process of breathing that includes ventilation (movement of air into and out of the lungs) and the exchange of oxygen and carbon dioxide between the air in the lungs and the blood, the transport of oxygen and carbon dioxide in the blood, and the exchange of oxygen and carbon dioxide between the blood and the tissues