Technique: Refactoring Global Data to Support Multiple Instances

5 August 2020 by Phillip Johnston • Last updated 14 December 2021Many applications are initially written to support a single instance of an object in a system. This often maps directly to the initial design of a system. However, future growth often requires these assumptions to be adjusted. Functions built around the assumption of a single instance of global data will often need to be updated to support multiple instances. In other cases, the use of concurrency requires that a function is made reentrant by removing internal references to global data and converting functions to use pointers or values as …

To access this content, you must purchase a Membership - check out the different options here. If you're a member, log in.