Gas-operation is a system of operation used to provide energy to operate locked breech, autoloading firearms. In gas-operation, a portion of high-pressure gas from the cartridge being fired is used to power a mechanism to dispose of the spent case and insert a new cartridge into the chamber. Energy from the gas is harnessed through either a port in the barrel or a trap at the muzzle. This high-pressure gas impinges on a surface such as a piston head to provide motion for unlocking of the action, extraction of the spent case, ejection, cocking of the hammer or striker, chambering of a fresh cartridge, and locking of the action.
Long stroke gas piston, from an AK-74
Short stroke gas piston and bolt carrier group, from a gas piston AR-15
A semi-automatic firearm, also called a self-loading or autoloading firearm, is a repeating firearm whose action mechanism automatically loads a following round of cartridge into the chamber and prepares it for subsequent firing, but requires the shooter to manually actuate the trigger in order to discharge each shot. Typically, this involves the weapon's action utilizing the excess energy released during the preceding shot to unlock and move the bolt, extracting and ejecting the spent cartridge case from the chamber, re-cocking the firing mechanism, and loading a new cartridge into the firing chamber, all without input from the user. To fire again, however, the user must actively release the trigger, allow it to "reset", before pulling the trigger again to fire off the next round. As a result, each trigger pull only discharges a single round from a semi-automatic weapon, as opposed to a fully automatic weapon, which will shoot continuously as long as the ammunition is replete and the trigger is kept depressed.
The Fusil Automatique Modele 1917 was the first semi-automatic gun that fires cartridges to be widely issued in the infantry of any nation's army.
SIG Pro semi-automatic pistol
Glock 18, a fully-automatic machine pistol from the mid-1980s (The picture shown is the Glock 18C)