What happens immediately when a star exhausts the hydrogen fuel in its core?

Answer

Outward thermal pressure drops suddenly, allowing gravity to gain the upper hand.

When core hydrogen fuel runs low, the outward thermal pressure drops abruptly. Gravity then immediately overcomes the remaining pressure, causing the core to contract rapidly.

What happens immediately when a star exhausts the hydrogen fuel in its core?
instabilitystar