死锁的解决方法(笑话?)

死锁的解决方法

起因

在看操作系统

经过

看到教材里有这么一段:

7.3 Methods for Handling Deadlocks

Generally speaking, we can deal with the deadlock problem in one of three
ways:

  • We can use a protocol to prevent or avoid deadlocks, ensuring that the
    system will never enter a deadlocked state.
  • We can allow the system to enter a deadlocked state, detect it, and recover.
  • We can ignore the problem altogether and pretend that deadlocks never
    occur in the system.

接下来:

The third solution is the one used by most operating systems, including Linux
and Windows. It is then up to the application developer to write programs that
handle deadlocks.

结果

所以,实际上,工程上,大家都是这么搞的吗?

Guess you like

Origin blog.csdn.net/agctXY/article/details/120755111