Thread.stop()
Roy Wilson
designrw at bellatlantic.net
Mon May 22 14:24:54 PDT 2000
Jason,
You say you're using DIE to halt infinite loops. Two questions:
(1) Are these loops infinite by design, by accident, or a mixture?
[and, perhaps relatedly]
(2) What sort of "process model" are you after? Have you considered
CSP?
Roy
Roy Wilson
designrw at bellatlantic.net
Jason Baker wrote:
> Mo DeJong <mdejong at cygnus.com> writes:
>
> > I was under the impression that methods like Thread.stop() were
> > removed from the JDK or replaced with no-ops. I seem to remember
> > that they were never implemented in Netscape's JVM. The whole
> > concept of stoping a thread seems like a bad idea, a thread
> > should expire due to natural causes.
> >
> > Here are some notes about it from the Sun developer site.
> > http://developer.java.sun.com/developer/bugParade/bugs/4187649.html
> > http://developer.java.sun.com/developer/bugParade/bugs/4248898.html
>
> Thread.stop is dangerous, but without a process model there is really
> no alternative. I'm using it to halt infinite loops, which is why I
> need the stack trace.
>
> Both Godmar and Pat use Thread.stop to implement safe termination, so
> given that it is part of Kaffe, what should the call do?
>
> Jason
More information about the kaffe
mailing list