Reputation: 3063
I saw there is a daemon thread running whenever we create a referenced object using any Reference class like
WeakReference,
FinalReference,
SoftReference,
PhantomReference,
Referemce
And if we have hierarchal thread structure then at each level there is an extra daemon thread initiated.
Upvotes: 1
Views: 169
Reputation: 67760
The only way I see this becoming a problem is if your number of threads grows well into 2 digits and more.
Very roughly speaking:
Upvotes: 1
Reputation: 533530
I would expect the overhead to be very small for most applications. Unless you know it is a problem I wouldn't worry about it. I have never seen references show up as an issue in a profiler and I have been using different profilers for 10 years.
Upvotes: 2