Assume a situation where the Linux kernel runs into a kernel thread deadlock condition, how does it handles it: Will it just stop kill the thread ,if yes, how does the kernel knows that this will not cause a kernel panic?
Is there any major difference on how the windows kernel handles such a condition?
P.S. I would be more than greateful for answers with code(coppied from kernel)-pseudocode.