Article View: borland.public.jbuilder.java.api
Article #1592Re: The affect of thread.interupt() ??
From: Dan Tran
Date: Tue, 11 Dec 2001 17:51
Date: Tue, 11 Dec 2001 17:51
17 lines
1567 bytes
1567 bytes
I did try to use wait/notify. However, the only way this would work is the main thread to call the notify() method. I have a need to interupt the thread from any thread. Am I wrong? Any suggestion? -Dan "John Baker" <jbaker@SoftComms.com> wrote in message news:3c15d527_2@dnews... > I'm not sure why you are not using the more usual method of Object.wait() > and Object.notify() to do this kind of thing? When work appears you can > interupt the blocked code this way. Read some good book on threading > synchronization issues and it'll save you a lot of headaches... > >
Technical Details
Message-ID:
<3c1647c2$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!24.226.1.12!feed.cgocable.net!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3bfbdd19$1_1@dnews> <3bfbe126$1_2@dnews> <3bfbe517$1_1@dnews> <3c15d527_2@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-12-11 09:56:55 PST From: "Dan Tran" <danttran@hotmail.com> Newsgroups: borland.public.jbuilder.java.api References: <3bfbdd19$1_1@dnews> <3bfbe126$1_2@dnews> <3bfbe517$1_1@dnews> <3c15d527_2@dnews> Subject: Re: The affect of thread.interupt() ?? Date: Tue, 11 Dec 2001 09:51:46 -0800 Lines: 19 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: 65.113.98.34 Message-ID: <3c1647c2$1_1@dnews> X-Trace: dnews 1008093122 65.113.98.34 (11 Dec 2001 09:52:02 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!24.226.1.12!feed.cgocable.net!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews