Operating System - HP-UX
1753856 Members
7324 Online
108809 Solutions
New Discussion

Re: JNI and multithreading

 
Fabio Massimo Ferri
New Member

JNI and multithreading

Hi,
i need to know which is the behaviour of JNI with multithreading.
I have a java program that crete 3 threads, i have also a c library with some functions.
My questions is, Do i need to synchronize these functions ?
These 3 threads calls, may be in the same time, these functions of the c library.
Is it necessary to synchronize the access to these c functions.
Keep in mind that for somew reasons i can not handle the synchronization of these 3 threads on the java side.

Thank you very much.
Regards,
Fabio
1 REPLY 1
CA538024
Honored Contributor

Re: JNI and multithreading

Hi Fabio,

Please post this question in the appropriate section of the Business Customer Discussion Groups. Here's a link to the home page for these forums:

http://forums.itrc.hp.com/cm/1,,2,00.html

If your product doesn't appear in these forums, try the ITRC forums:

http://forums.itrc.hp.com/cm/

If all else fails, here's a web site to help you find support for your product:

http://h20000.www2.hp.com/bizsupport/TechSupport/CallHP.jsp

Good luck!

Kathy