ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  10 Reasons We Need Java 3.0
Subject:   As long as we have JNI we need Thread.stop()
Date:   2003-05-01 07:01:00
From:   anonymous2
I work on something that could be described as a specialized application server. It runs business rules in a multithreaded environment. The rules can be written in Java or in C using JNI calls. There are seperate watchdog threads that keep track of the rule running threads and stop them if the rules are taking too long. Thread.interrupt works OK for the Java rules, but often you need to do a Thread.stop for the C rules if they get in some kind of infinite loop or if they're waiting too long for I/O.