🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1522

Re: The affect of thread.interupt() ??

#1522
From: Greg Hamer
Date: Wed, 21 Nov 2001 17:15
23 lines
1548 bytes
Code that can calls methods that can throw this exception have to be in try
blocks, so unless the catch does something stupid, you should be okay.
Normally you just eat this exception. You can tell later if it happened with
the isInterrupted() method of Thread. You must be printing a stack trace in
your catch.

"Dan Tran" <danttran@hotmail.com> wrote in message
news:3bfbdd19$1_1@dnews...
> Hi,
>
> I have a running thread (processing some task) and it receives an external
> interrupt via Thread.interrupt().
>
> I see a java.lang.InterruptedException msg showing my in my Jbuilder
> console.
>
> Would this cause any harm? Would this abort the running task??
>
> Any suggestion?
>
> -Dan
>
>
Technical Details
Message-ID: <3bfbe126$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews
References: <3bfbdd19$1_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,71862bc66236ba1d
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-11-21 09:21:20 PST
From: "Greg Hamer" <ghamer@troikanetworks.com>
Newsgroups: borland.public.jbuilder.java.api
References: <3bfbdd19$1_1@dnews>
Subject: Re: The affect of thread.interupt() ??
Date: Wed, 21 Nov 2001 09:15:10 -0800
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 12.31.172.108
Message-ID: <3bfbe126$1_2@dnews>
X-Trace: dnews 1006362918 12.31.172.108 (21 Nov 2001 09:15:18 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews