I google the solution for killing a java thread. And there exists two solutions:
But both of them ar
Spawn a separate process and kill it using OS facilities. You'll have to call into "C" to do it but it won't be much code. You didn't say what OS you are running on.