Today i was asked this question about sharing data from a thread t1 that runs in one jvm 1 to a thread 2 running in another jvm 2, and similarly to another thread t3 in jvm 3. after some homework i had told the following answer.kindly let me know if you have better and efficient answer.
------------- ----------------- jvm 1 PASS THE DATA TO ANOTHER THREAD IN A JVM2 NOTHER JVM ===============>>>>> tHREAD T1 tHREAD T2 -------------- -------------------
When the JRE is installed using the installer, the installer loads a set of classes from the system jar file into a private internal representation, and dumps that representation to a file, called a "shared archive". If the JRE installer is not being used, this can be done manually, as explained below.
Yes, you can run multiple JVM's on a single machine.
A shared memory connection allows both the client and the database to share the same memory on their host machine. This shared memory is temporary, and it is backed up by virtual memory. Shared memory connections are automatically used by Java applications running on the same machine as an InterSystems IRIS instance.
I think it depends on the context of your application. You have multiple options:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With