Generic Locking and Deadlock-Prevention with C++
暂无分享,去创建一个
Concurrent programming with threads heavily relies on locks. The locks provided by most threading systems are rather basic and suffer from a variety of problems. This paper addresses some of them, namely deadlocks, lack of exception-safety, and their procedural style. We describe higher-level locks that can be assembled from the more basic ones. Throughout the paper, we refer to C++ and OpenMP for parallelization, but most of the functionality is generic and independent from OpenMP. This work is part of the AthenaMP project.
[1] Mads Torgersen,et al. The c# programming language, third edition , 2008 .
[2] Scott Meyers,et al. Effective C++: 55 Specific Ways to Improve Your Programs and Designs (3rd Edition) , 1991 .
[3] John H. Baldwin. Locking in the Multithreaded FreeBSD Kernel , 2002, BSDCon.
[4] Bjarne Stroustrup,et al. C++ Programming Language , 1986, IEEE Softw..