项目作者: sheikhazad

项目描述 :
This project shows how deadlock is produced and multiple possible solutions to avoid deadlock. STEPS TO AVOID DEADLOCK: i) Avoid locking multiple mutexes but only 1 mutex if possible ii) After locking mutex, avoid calling user provided funtion (that can access/modify the resource without being locked) iii) If you require to lock more than 1 mutex then try to user API/RAII provided by modern C++ (which are discussed in this project) iv) If you can't use API/RAII mentioned in iii) above then lock the mutexes in the same order.
高级语言: C++
项目地址: git://github.com/sheikhazad/Deadlock-Multiple-Solutions.git
创建时间: 2019-06-01T01:34:16Z
项目社区:https://github.com/sheikhazad/Deadlock-Multiple-Solutions

开源协议:

下载