This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Posted by Abhriup kumar Prasad` on February 08, 2001 at 10:56 AM
> > My application creates numerous threds, after their usage I just
> > call stop() on them, but they don't seem to be getting garbage
> > collected, i.e. resulting in memory leaks. Any ideas to avoid
> > these memory leaks on these Zombie threads.
> calling stop() method on a thread will simply stops its execution.in java u can not force garbage collector to free the memory u assigned to diiferent objects.Garbagecollectior is a low priority thread which will run when no other higher priory threads are running ant will free the memory.
> so we can not be sure of freeing of memory.just assign null after usning to the object u created so that when GC runs it cleans this object
> Ramehs R G V S