Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNI and Shared Libraries on UNIX questions

 
David Wright
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I have a query about how shared libraries work on
Unix. I have a C++ application that I am talking to
in Java using JNI (I have written a C shared library,
the JNI wrapper, to communicate with the application
shared libraries).
Now, what I do not understand is how shared libraries
work with virtual machines on Unix. In my environment,
there will be multiple virtual machines running on the
same HP box.
Will each virtual machine get its own copy of the application
shared libraries that I'm talking to with JNI? Will the
application shared library be loaded once in Unix, and
then each virtual machine communicates with the same
single shared library instance? Will each virtual machine
use the one shared library, but each get there own copy
of any global variables, if defined, within the sahred library?
Thanks in advance for any light, or links, into how shared
libraries work in the above scenario.
Thanks,
Kind regards
Dave
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic