tags:

views:

25

answers:

1

Why we are putting bean as signlton? there is no any concurrency issue occur ?

How we prevent

A: 

It's up to you to make sure the singleton is thread safe. If it's not, then a singleton is probably not a good idea.

skaffman
But if we put thread safe the it decrease performance of the application. Then why sign-ton is necessary for framework ?
@Patel: Synchronization and thread-safety are not the same thing.
skaffman