Thread View: borland.public.jbuilder.java.api
3 messages
3 total messages
Started by vkoni
Thu, 31 Oct 2002 02:01
Why Thread.destroy is not implemented
Author: vkoni
Date: Thu, 31 Oct 2002 02:01
Date: Thu, 31 Oct 2002 02:01
15 lines
1211 bytes
1211 bytes
Yes, why
Thread t = new Thread ( new Runnable () { public void run () { >> while (
true ); << } });
t.start();
t.destroy(); // <----- is not implemented
I know about how to stop thread but i'm interesting to know what politics
Sun is running with destroy method!??!?
Best Regards,
Ivko
ivko@omni-explorer.com
Re: Why Thread.destroy is not implemented
Author: Tor Iver Wilhelmsen (TeamB)
Date: Thu, 31 Oct 2002 08:55
Date: Thu, 31 Oct 2002 08:55
11 lines
1344 bytes
1344 bytes
"vkoni" <ivko999@yahoo.com> writes: > I know about how to stop thread but i'm interesting to know what politics > Sun is running with destroy method!??!? Thread has a bunch of methods it probably never should have had; the proper way to end a thread is to have the Runnable return from run(). There are tons of documents in the bug database and elsewhere on developer.java.sun.com which explains why the deprecated methods are the way they are.
Re: Why Thread.destroy is not implemented
Author: Shankar Unni
Date: Thu, 31 Oct 2002 20:17
Date: Thu, 31 Oct 2002 20:17
9 lines
1496 bytes
1496 bytes
On 10/31/2002 12:55 AM, Tor Iver Wilhelmsen (TeamB) wrote: > There are tons of documents in the bug database and elsewhere on > developer.java.sun.com which explains why the deprecated methods are > the way they are. See the following document: http://java.sun.com/j2se/1.4.1/docs/guide/misc/threadPrimitiveDeprecation.html
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads