Priority inversion occurs when a low priority process holds a resource needed by a high priority process, and the high priority process ends up waiting for the low priority process to finish. This can lead to a situation where the low priority process never gets scheduled, as the high priority process is waiting.