title: Calling C++ library function using JNI and which process executes that C++ library
body: <p>I am new to Java &amp; JNI. This question maybe very newbe. I have C++ library and Java application which interns call the C++ function using JNI concepts. </p>
  
  <p>As per my understanding, JVM loads the C++ dll/SO in JVM space before calling a native function call.</p>
  
  <p>If my understanding on the JVM is correct on JNI. Can someone tell me which/who is going to execute the C++ library function which is loaded inside the JVM.<br>
  Let say for C++, there is standard dynamic linker-loader present to handling the dynamic execution part of the C++ and executes all the machine instructions. </p>
  
  <p>In case of JVM loaded JNI Libs (in this case C++ libs), does JVM executes the those libs ? If so does it uses its memory to execute the native function?   </p>
  
  <p>Thanks in advance.</p>