What is the difference between a cardiac and a thoracic surgeon?

Heart surgery or not. Most chest surgeons are cardiothoracic surgeons and perform all procedures involving organs of the chest cavity, but some choose to focus only on the lungs and identify themselves as thoracic surgeons.