采用锁的程序必须非常小心,以免产生死锁的情况。
A program taking a lock must take great care not to create a deadlock situation.
这个版本的程序演示了一个产生死锁的一般来源:程序员的错误。
This version of the program demonstrates a common source of deadlocks: programmer stupidity.
您可将注意力放到应用逻辑中,而不必担心会产生死锁而导致系统突然宕机。
You can put your concentration back on your application logic and not worry so much about creating a deadlock that will bring your system to a sudden halt.
应用推荐