Terminate a thread which is running a native code

前端 未结 5 1684
既然无缘
既然无缘 2020-12-16 04:12

In my application I have a wrapper over some native code, which is called via JNI bridge. This native code needs to be executed in separate thread (parallel processing). How

5条回答
  •  無奈伤痛
    2020-12-16 05:03

    Since you are dealing with 3rd party code I would suggest creating a native shell application that handles calling, tracking and terminating these threads. Better yet get this 3rd party to do it for you if your licence agreement offers any kind of support.

    http://java.sun.com/docs/books/jni/html/other.html

提交回复
热议问题