The Magnetron is a high power microwave oscillator, uses the interaction of electric and magnetic fields in a cavity to produce oscillations of very high power.
The Q-Switch is a device which is placed inside the laser cavity. Main purpose of the Q-switch is to rapidly change the feedback of a laser cavity from minimum to maximum.