At any given time the radiation in the cavity may not be in thermal equilibrium, but the second law of thermodynamics states that if left undisturbed it will eventually reach equilibrium, although the time it takes to do so may be very long. Typically, equilibrium is reached by continual absorption and emission of radiation by material in the cavity or its walls. Radiation entering the cavity will be " thermalized " by this mechanism: the energy will be redistributed until the ensemble of photons achieves a Planck distribution. The time taken for thermalization is much faster with condensed matter present than with rarefied matter such as a dilute gas. At temperatures below billions of Kelvin, direct photon–photon interactions are usually negligible compared to interactions with matter. Photons are an example of an interacting boson gas, and as described by the H-theorem, under very general conditions any interacting boson gas will approach thermal equilibrium.