Canonical and microcanonical ensemble
Microcanonical ensemble means an isolated system with defined energy. The system may be found only in microscopic state with the adequate energy, with equal probability.
Canonical ensemble means a system attached to the "temperature reservoir", which may supply/take infinite amount of energy. The system may be found in any microscopic state, with probability proportional to the Boltzmann factor.