Reputation: 12585
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 -------------- -------------------
Upvotes: 7
Views: 3098
Reputation: 20895
I think it depends on the context of your application. You have multiple options:
Upvotes: 11