In these situations, the X-rays are emitted near the inner edge of an accretion disk in which gas swirls onto a compact object such as a white dwarf, neutron star, or black hole.
When observing these events, X-rays are produced close to the inner boundary of an accretion disk where gas is swirling towards a compact object like a white dwarf, neutron star, or black hole.