A linear accelerator is a medical device used in radiation therapy to treat cancer. It contains components like a radio frequency power source, modulator, electron gun, and accelerator guide. Electrons are injected into the accelerator guide in pulses from the electron gun and accelerated using high-frequency electromagnetic waves supplied by the RF power source down the guide to produce a beam of x-ray radiation to treat tumors. Linear accelerators are used to treat cancers of the bone, head, neck, pelvis, and thorax by emitting precisely targeted beams of radiation.