Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using JNI and threads in C-library

Status
Not open for further replies.

PieterWinter

Programmer
Jul 8, 2002
41
NL
From Java I'm considering using a C-library that uses thread pools, mutexes, conditional semaphores and the likes. Using JNI I can access C-functions from Java.

I need to be able to let the threads (from C) callback to the Java code (e.g. when some library-internal event happens, such as incoming message). Is this possible? Any help or pointer to (online) documentation is appreciated.

btw. I looked through the JNI stuff from Sun, there was "a" remark on native threads, but did not point me in the right direction...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top