🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #14473

To kill or to stop, wether it is better or necessary....

#14473
From: Hugo Ferreira
Date: Thu, 02 Sep 1999 00:00
15 lines
1127 bytes
Hi,

I have a question: the stop() and suspend() methods of the Thread class have
been depreciated. This means a stop or suspention of a thread must be
implemented by the programmer. To do this the thread basically loops and
tests the temination, suspension or run conditions.

Now if during the run condition the thread execution deadlocks, then the
thread will hang.....forever! My question is: Shouldn't the stop() method be
kept for such situations? A stop should terminate the (O.S.) thread and
possibly release any monitors it holds.

Any comments ?

Hugo Ferreira.
Technical Details
Message-ID: <7qlc5n$ee27@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,65cc70aba4f7ebe4,start
X-Google-Attributes: gidf74b3,public
From: "Hugo Ferreira" <hmf@inescn.pt>
Subject: To kill or to stop, wether it is better or necessary....
Date: 1999/09/02
Message-ID: <7qlc5n$ee27@forums.borland.com>
X-Deja-AN: 520083574
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: INESC Norte
X-MSMail-Priority: Normal
Reply-To: "Hugo Ferreira" <hmf@inescn.pt>
Newsgroups: borland.public.jbuilder.java.language