Singletons, Critical Sections, and Reader/Writer Locks

  • Allen Holub


This chapter adds a few more tools to your mutithreading arsenal: I’ll discuss Singletons (one-of-a kind objects) and critical sections (blocks of code that can be executed by only one thread at a time). Singletons in particular, are surprisingly difficult to implement efficiently in a multithreaded environment, but are essential in most programs (java.awt.Toolkit is an example of a Singleton).


Class Object Critical Section Color Scheme Read Operation Public Class 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Allen I. Holub 2000

Authors and Affiliations

  • Allen Holub

There are no affiliations available

Personalised recommendations