A glass tube that has had all gas has been removed creating a vacuum. Vacuum tubes contain electrodes for controlling electron flow and were commonly used in early computers as a switch or an amplifier. Today, vacuum tubes are no longer used and have been replaced by transistors.