Sleep apnea is a condition leading to snoring and having problems related to breathing while asleep. Abruptly waking up and gasping for breath is a common symptom. It can affect quality of life causing sleepiness and fatigue during the daytime. A pulmonologist can treat sleep apnea by prescribing a device known as a CPAP machine that delivers air pressure, while preventing snoring and apnea.