RAII

C++ Concurrency and Utilities

I have been reading Bjarne Stroustrup’s “A tour of C++” recently and wanted to make notes on it’s last section: Concurrency and utilities Below are my notes. Resource Management It is important that a program doesn’t leak resources. This may cause security vulnerabilities, as much as program efficiency drop by orders of magnitude. To ensure resources are correctly used, we can handle them using the RAII (Resource Aquisition Is Initialization) technique.
Read more