Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JNI Multi threading Problem

843829Feb 1 2010 — edited Feb 4 2010
Hi,

I have Java application which loads native c++ dlls in run time. In single threaded mode the application is working fine.I modified the application such that multiple threads created by JVM can access the C++ dll.
Thead model is Windows threads. To make the application thread safe I'm using OMP supported by MSVS-2008 but the application is crashing :(.
I'm not creating any threads in C++ code but i'm just allowing threads created by JVM to run thru the C++ code.
Please let me know wheather i'm missing something and doing something wrong?. I'm new to JNI coding.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 4 2010
Added on Feb 1 2010
15 comments
3,315 views