Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Machine > please help wit...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 770 of 803
Post > Topic >>

please help with JNI and pthread

by andrew_nuss@[EMAIL PROTECTED] May 15, 2007 at 10:08 PM

Hi,

I have a JNI library.  I have a critical section that makes no JNI
callbacks into the java bytecodes, just several C++ statements that
change memory.

On which JREs and platforms (if any) can I protect such a critical
section with a pthread mutex (or Win32 mutex) with the same acquire/
release semantics that a pthread mutex normally offers relative to the
java threads.  I.e. could a signal allow another java thread to
somehow enter the critical section held by the thread already in it?

The problem for me is that MonitorEnter and MonitorExit are very slow
in comparison to a native mutex.

Andy




 1 Posts in Topic:
please help with JNI and pthread
andrew_nuss@[EMAIL PROTEC  2007-05-15 22:08:16 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu May 15 0:08:48 CDT 2008.