  We consider the charged d-dimensional black holes in a cavity in extended
phase space and investigate the heat engine and the Joule-Thomson (JT)
expansion. Since the phase structure of black holes in a cavity is similar to
anti-de-sitter (AdS) cases, we take black holes in a cavity as the working
substance in the heat engine and calculate their efficiency in Carnot cycle and
rectangular cycle. Also, we discuss whether the JT expansion of charged black
holes in a cavity is consistent with AdS cases and conclude the effect of
different boundary conditions on black hole thermodynamics.
