A closed space within a conductor in which an electromagnetic field can be made to oscillate at frequencies above those at which a resonant circuit will operate. The resonant frequency of the oscillation will depend on the dimensions and the shape of the cavity. The device is used to produce microwaves (see klystron; magnetron).