Is JNI MT safe?

Tim Panton - Westhawk Ltd tpanton at ibm.net
Sat Nov 12 19:29:10 PST 2005


The line I've taken is to port to
java if possible, since it makes
portability, debugging and security
much easier.
If you can't port, then turn it into
a tcp service, and let your java 
access it that way.
Only as a last resort use JNI, and
then as thin a layer as possible.


Jiandong Ye <dragonfly at gocougs.wsu.edu> wrote:
__________
>I'm using JNI to run some legacy code in Java 1.2.2 on Sun
>solaris enviroment. The legacy code is not necessarily thread safe,
>because according to Richard Stevens' "Advanced Programming in the Unix
>Environment", section 10.6, basic functions like malloc() or free()
>are not reentrant.  so, my question is, is JNI MultiThread safe?
>
>I'm on the edge of deciding whether I need to rewrite a large
>portion of some old legacy code in Java or not. so I'm really
>like to hear some second opinions on this one, any opinions is
>welcome.
>
>thanks a lot.
>--jd
>
>
>
>----
URL http://www.westhawk.co.uk/

---
To unsubscribe, mail advanced-java-unsubscribe at xcf.berkeley.edu
To get help, mail advanced-java-help at xcf.berkeley.edu



More information about the Advanced-java mailing list