活锁:
线程1可以使用资源,但它很礼貌,让其他线程先使用资源,
线程2也可以使用资源,但它很绅士,也让其他线程先使用资源。
这样你让我,我让你,最后两个线程都无法使用资源。
https://blog.csdn.net/qq_22054285/article/details/87911464https://blog.csdn.net/qq_22054285/article/details/87911464
活锁:
线程1可以使用资源,但它很礼貌,让其他线程先使用资源,
线程2也可以使用资源,但它很绅士,也让其他线程先使用资源。
这样你让我,我让你,最后两个线程都无法使用资源。
https://blog.csdn.net/qq_22054285/article/details/87911464https://blog.csdn.net/qq_22054285/article/details/87911464
微信扫码登录