Abstract
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).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2000 Allen I. Holub
About this chapter
Cite this chapter
Holub, A. (2000). Singletons, Critical Sections, and Reader/Writer Locks. In: Taming Java Threads. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-1129-7_7
Download citation
DOI: https://doi.org/10.1007/978-1-4302-1129-7_7
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-893115-10-1
Online ISBN: 978-1-4302-1129-7
eBook Packages: Springer Book Archive