Resource Management

Dated May 31, 2022; last modified on Tue, 31 May 2022

A resource is something that must be acquired, and later (explicitly or implicitly) released. Examples include memory, locks, sockets, thread handles, and file handles.

In a long-running program, failing to release a resource may degrade performance or even crash. Worse still, one may introduce security bugs, e.g. use-after-free.

A Tour of C++ (Second Edition). Chapter 13. Utilities. Bjarne Stroustrup. 2018. ISBN: 978-0-13-499783-4 .
Random Link ¯\_(ツ)_/¯
May 31, 2022»Resource Management in C++ 4 min; updated May 31, 2022