Need some clarification about singleton pattern -


does singleton design pattern make sure 1 single object reference or there chance/possibility of more 1 ref of object while implementing singleton pattern, think in case of multi threading there chance of more 1 object have implemented singleton pattern.

please help.

it possible threading cause problems singleton. can find comprehensive set of solutions making singletons thread safe here:

http://csharpindepth.com/articles/general/singleton.aspx


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -