Answer the question
In order to leave comments, you need to log in
Parallel launch of Java programs under Windows using dll. Is there a danger of using shared memory areas in a dll?
There is a Java program called under Windows as javaw.exe. Internally, it loads and uses several dlls. If we run several instances of this program in parallel, will the dlls for each instance be loaded independently and use independent memory areas?
Answer the question
In order to leave comments, you need to log in
If the processes with the loaded dll are different, then you don't have to worry about the memory - it will be different in different processes.
But there may be other nuances, such as using the same port for a socket, or opening global named pipes with a given name, and so on. In this case, either the second one, etc. processes will fall out with errors, or various difficult-to-diagnose problems are possible.
It is the task of the operating system to clearly demarcate areas of memory for different processes.
In general, if you have a dll there - not a C code that directly climbs into memory - there should be no problems
Thank you.
The code is written in C. Not all are available. Unfortunately, my knowledge of C has not been refreshed for a long time. Are there tools like SysInternals that show the memory usage of dlls that are loaded from Java in a Win7 environment? Do you have such experience?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question