# 104: Multithreading. Singleton Mistakes.

> Episode of [Take Up Code](https://podistic.com/podcast/take-up-code.md) · Published May 10, 2016 · Duration 11:45

- **Listen on Podistic:** https://podistic.com/episode/1294--104-multithreading-singleton-mistakes
- **Audio:** https://www.takeupcode.com/podcast-download/476/104-multithreading-singleton-mistakes.mp3 (audio/mpeg)

## About this episode

There is a big problem with Singletons especially in the C++ language. It is not obvious how to get them to work with multiple threads. You want one instance in your entire application and how do you handle the race condition when multiple threads ask for the instance at the same time?
