Article View: borland.public.jbuilder.java.language
Article #7708Re: How do you stop running thread
From: Torsten Welches
Date: Tue, 29 May 2001 09:27
Date: Tue, 29 May 2001 09:27
40 lines
1793 bytes
1793 bytes
Toshiko, you might want to check this: http://java.sun.com/docs/books/tutorial/essential/threads/lifecycle.html http://java.sun.com/j2se/1.3/docs/guide/misc/threadPrimitiveDeprecation.html Torsten "Toshiko Y" <may14000@Hotmail.com> wrote: >Hello ! > >Could somebody please help me with >my threads. > >I have a parent thread which calls children >threads. >I guess when I stop my parent thread, >child threads stop as well. >(Hopefully) > >I'm trying to stop my running thread, >but can't manage. >I tried the stop() method, >suspend() + stop() method. >But it doesn't work.... > >I tried to use destroy() method, >when I got caught with the below exceptions. > >Exception occurred during event dispatching: >java.lang.NoSuchMethodError > at java.lang.Thread.destroy(Thread.java:709) > >Is there a way to stop my Thrasher threads! > >Thank you. >Toshiko > >
Technical Details
Message-ID:
<3b136b78$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed1.uni2.dk!newssuck.uni2.dk!dnewsReferences:
<3b1367b6$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,5b284219e0e5dcfe X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-05-29 02:34:02 PST From: "Torsten Welches" <torsten.welches@who.cares.netcologne.de> Sender: "Torsten Welches" <torsten.welches@who.cares.netcologne.de> Reply-To: "Torsten Welches" <torsten.welches@who.cares.netcologne.de> Subject: Re: How do you stop running thread Newsgroups: borland.public.jbuilder.java.language X-User-Info: 193.158.55.74 193.158.55.74 References: <3b1367b6$1_1@dnews> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3b136b78$1_1@dnews> Date: 29 May 2001 02:27:20 -0700 X-Trace: dnews 991128440 207.105.83.65 (29 May 2001 02:27:20 -0700) Lines: 41 Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed1.uni2.dk!newssuck.uni2.dk!dnews