Thread Specific Singletons: Handling Singleton Pattern Errors in Multi-Threaded Applications and their Variations.
Year: 2002
Type: article
Abstract: The use of the design patterns has been popularized with the publication of the Design Patterns book by Gamma et al. (1995). In this paper we discuss the implementation of the singleton design patterns from \error recovery perspectives for multi-threaded applications where dynamic memory is allocated on a task by task basis. The description of the singleton pattern is straight forward but its implementation issues are complicated [Alexandrescu, 2001]. We highlight a few problems of traditional implementation for multi-threaded applications and propose several alternatives that could potentially be used in dierent contexts depending on the problem at hand. Because of the popularity of the C++programming languages in the industry, we also present sample implementation details in C++.
Source: The Journal of Object Technology
Authors: Yagna Pant, Kazuhiro Ondo
Institution: Motorola (United States)
Language: English
Subfield: Development
Field: Social Sciences
Domain: Social Sciences
Open Access status: bronze
OpenAlex ID: W2016852277
