In my program system,I need several process exchange data each other.And the speed must be too quickly to satisfy the real time. So I think the RMI of java can not meet my need. Who can tell me what can I do.
Your requirement is too general. Nearly all the industrial apps use some form of data sharing and not all of them use RMI/CORBA etc. You'll need to give more details like, what kind of data is it, where is it stored, how it is modified, what do the processes do etc. -Paul. ------------------ SCJP2, SCWCD Resources, Free Question A Day, Mock Exam Results and More! www.jdiscuss.com Get Certified, Guaranteed! JQPlus - For SCJP2 JWebPlus - For SCWCD JDevPlus - For SCJD
Jim Petersen: Thanks for your advice first. This post is the hottest post area in javaRanch. So I think I can get reply more eventual in this post than any other post area.
Joined: Sep 12, 2001
Hi Paul Anil: Thanks a lot for your response. My industrial apps is for electric power data gather.The system need several apps to perform different task.For example: data gather app and graphic app for mmi.All of the apps are run on the same computer.The data is from com port of computer. To insure the response speed,the data need to be stored in memory.In c++ edition of this system,we use share memory technology to share data among apps .But java does not support point to operate memory. RMI/CORBA can't meet the speed request.
<blockquote>In my program system,I need several process exchange data each other.And the speed must be too quickly to satisfy the real time. So I think the RMI of java can not meet my need. Who can tell me what can I do.</blockquote>
Assuming all the processes run on the same JVM, you need to create a class which represents your shared memory area. Then use multiple threads to access the data in a synchronized fashion. ------------------ Sun Certified Programmer for the Java 2 Platform