What happens when lungs fail?

What happens when lungs fail? When a person has acute respiratory failure, the usual exchange between oxygen and carbon dioxide in the lungs does not occu...