A heat pipe has a closed conduit which is partially filled with a liquid, an evaporator for converting a portion of the liquid in the conduit into vapor and a condenser for condensing vapor in the conduit. A plurality of displacement bodies are displaceably provided in the liquid. The displacement bodies have a higher compressibility than the conduit and a density of the displacement bodies is greater than a density of the liquid.