This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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