How can strong X-rays originate from stars?

In a close binary system, one of the components may be a neutron star. The substance sucked in by this star accelerates in its vicinity to speeds reaching 100,000 km / s. When a substance collides with a surface, energy is released in the form of X-ray radiation. X-ray radiation can also arise in the collision of particles falling on a black hole.
In general, the mechanism of the formation of X-ray radiation is similar to that of an X-ray tube.

Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.