a central topic in thermal physics is the canonical probability distribution. the electromagnetic nature of photons and phonons are studied which show that the oscillations of electromagnetic fields and of crystal lattices have much in common. waves form a basis for both, provided one incorporates quantum theory.