避免死锁的一招: 使用会超时的锁

如果过了很久还没拿到锁,就放弃求锁。 这招总是可以避免陷入无限的僵局。

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.