Kill a thread automatically
From: Adi Schwarz (adolf.schwarz.news.01-04_at_gmx.at)
Date: 01/30/04
- Next message: John Curley: "jaas in a j2ee application"
- Previous message: BarryNL: "Re: Interfaces and aggregation"
- Next in thread: Niki Estner: "Re: Kill a thread automatically"
- Reply: Niki Estner: "Re: Kill a thread automatically"
- Reply: Chris Smith: "Re: Kill a thread automatically"
- Reply: Bryan Bullard: "Re: Kill a thread automatically"
- Reply: Tony Morris: "Re: Kill a thread automatically"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Jan 2004 15:39:32 +0100
Hi,
If I have a class that runs a thread and no reference points to it, the
gc won't finalize the class because the thread is still running -> so
stopping the thread in the finalize() method won't work. Afaik this is
also true for daemon threads.
Is it possible to stop a thread automatically when there are no
references left? In my case it does not matter if the thread is
gracefully interrupted or just killed and whiped out.
greets,
-adi
- Next message: John Curley: "jaas in a j2ee application"
- Previous message: BarryNL: "Re: Interfaces and aggregation"
- Next in thread: Niki Estner: "Re: Kill a thread automatically"
- Reply: Niki Estner: "Re: Kill a thread automatically"
- Reply: Chris Smith: "Re: Kill a thread automatically"
- Reply: Bryan Bullard: "Re: Kill a thread automatically"
- Reply: Tony Morris: "Re: Kill a thread automatically"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|