thoracic vs pulmonary cavity
Thoracic cavity is the cavity or hollow space present in body of vertebrates enclosed by rib cage and muscles between the diaphragm and neck. It contains lungs and heart.It also contains other organs such as oesophagus, trachea,etc.
Pulmonary cavity is the space enclosed by the lungs of our body.