Q-switching is a technique used to produce high-power laser pulses. It involves preventing the laser from oscillating to allow the population inversion in the lasing medium to build up to a high level. Then, by suddenly allowing oscillation, all the stored energy is emitted in a single giant pulse with peak power much higher than during normal operation. The pulse duration is typically 10-7 to 10-8 seconds. Q-switching provides a means to drastically increase the laser power output through stimulated emission of a very large number of atoms in the active medium.