Question d’entretien chez Aptiv

Difference between HW and SW interrupt? What does volatile do?