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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C/Java Memory Sharing/Access

Status
Not open for further replies.

rhaddad

Programmer
Feb 24, 2004
1
US
Hi all,

I'm wondering if there's an efficient way to share memory between C and JAVA without having to do data conversion. For example, I use JNI to "translate" j objects (e.g, jint) to C variables. This is time consuming, especially when we're dealing with large sets of data, as in my case.
Is there a way to have C access those j objects directly without any "translation"?
How about the other way around? In other words, can a Java program access C structures directly in memory?

If so, how? Do you have sample code?

Thank you!
RH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top