A comparison between the results of x-ray absorption spectroscopy of runaway electrons (RAEs) generated during nanosecond timescale high-voltage (HV) gas discharge and the simulated attenuation of the x-ray flux produced by the runaway electron spectrum calculated using particle-in-cell numerical modeling of such a type of discharge is presented. The particle-in-cell simulation considered the field and explosive emissions (EEs) of the electrons from the cathode. It is shown that the field emission is the dominant emission mechanism for the short-duration (<2.5 ns) high-voltage pulses, while for the long-duration (>5 ns) high-voltage pulses, the explosive emission is likely to play a significant role. V C 2012 American Institute of Physics.[http://dx.doi.org/10.1063/1.3689010] Today, nanosecond and sub-nanosecond high-voltage (HV) and high-current electrical discharges in pressurized gas are used in various applications, such as x-ray generation, laser pumping, and gap spark switches. 1 This type of discharge 2-4 is accompanied by the generation of runaway electrons (RAEs), which presumably pre-ionize the gas inside the cathode-anode (CA) gap and lead to the generation of a fast propagating ionization wave. 5,6 Because of the sub-nanosecond timescale of the discharge, investigation of the RAE generation inside the CA gap with the required time and space resolution is problematic. Today, the parameters of RAE behind the thin anode foil are studied using Faraday cups, collectors, foil spectrometry, and the time-of-flight method. [2][3][4][5][7][8][9] Since the 1960s (see, for instance, Refs. 10-14), the detection and analysis of the x-rays produced by the RAE's interaction with the anode have remained a reliable method of obtaining important data on RAE generation. Nevertheless, none of these diagnostic methods allows one to determine the RAE source(s) inside the CA gap or the phenomena responsible for RAE generation. It was supposed that RAE consist of electrons emitted from the cathode as well as of electrons emitted from the moving boundary of the plasma channel. 3,4,15 In addition, it was suggested, 4 and confirmed by the results of numerical simulations, 16 that the termination of the RAE generation occurs as a result of either the shielding of the electric field that causes the field emission (FE) by the space charge generated inside the CA gap 15,17 or the transformation of FE to explosive emission (EE). 16 It is important to note that the time delay in the EE beginning in gas-filled diodes is still debatable issue (see, for instance, Refs. 4, 18 and 19). The separation between space charges of electrons and ions generated in non-uniform electric field in the cathode vicinity changes drastically the electric field at the cathode surface and, for instance, in Refs. 17 and 18, it was shown that in gas-filled diode, the EE could start at 50 ps with respect to the beginning of the HV pulse.In this paper, it will be shown that attenuation dependencies of experimentally obtained and simulated x-rays fluxes generate...