Reputation: 148
Can you please Explain me what is Thread Leak and Thread Dump in Java? I am just confuse about thread Dump.
Let me know the other way of creating thread except Thread class and runnable interface?
Upvotes: 5
Views: 13521
Reputation: 172408
From the docs:
The thread dump is a snapshot of exactly what's executing at a moment in time
And thread leak is when we dont close the thread properly then the number of unused threads grows with time.
Upvotes: 7