Linux Kernel deadlock, Linux Kernel
A deadlock is a state where multiple processes (threads) are blocked because they wait for resources occupied by other processes for a long time. When the waiting resources are not released, the deadlock will continue. Once a deadlock occurs, the program itself cannot be solved. It can only rely on external forces to resume running of the program, such as restarting the program and resetting the opening dog.
Therefore, the kernel has designed the kernel Deadlock Detection mechanism. Once a deadlock process is found, the OS will be restarted to solve the problem. The reason for using the restart method is that the distributed system can tolerate single-point crashes and cannot tolerate single-point process computing exceptions. Otherwise, the failure to restart the operating system by performing the Deadlock Detection will not be worth the candle.