 Maxwell's demon

Maxwell's demon is a thought experiment created by the physicist James Clerk Maxwell in 1867 in which he suggested how the second law of thermodynamics might hypothetically be violated.In the thought experiment, a demon controls a small door between two chambers of gas.