aspose file tools*
The moose likes Java in General and the fly likes How java implement Share Memory? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How java implement Share Memory? " Watch "How java implement Share Memory? " New topic
Author

How java implement Share Memory?

Dragon Liu
Greenhorn

Joined: Sep 12, 2001
Posts: 22
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.


Hello,This is my question
Jim Petersen
Ranch Hand

Joined: Jul 24, 2001
Posts: 241
Hi
this post (ie RMI) ain't quite right this discussion area - namely SCJP study - you'll be better served by posting to Java in General.. or the RMI/Corba sections
rgds Jim

- Jim Petersen <br />SCJP2<br />SCWCD<p>- but then again, I could be wrong...
Paul Anilprem
Enthuware Software Support
Ranch Hand

Joined: Sep 23, 2000
Posts: 3313
    
    7
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


Enthuware - Best Mock Exams and Questions for Oracle/Sun Java Certifications
Quality Guaranteed - Pass or Full Refund!
Dragon Liu
Greenhorn

Joined: Sep 12, 2001
Posts: 22
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.
Dragon Liu
Greenhorn

Joined: Sep 12, 2001
Posts: 22
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.
Jane Griscti
Ranch Hand

Joined: Aug 30, 2000
Posts: 3141
Hi Dragon,
I'm going to move this thread to Java Intermediate as it's not related to Certification Study.
------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform


Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
Geoffrey Falk
Ranch Hand

Joined: Aug 17, 2001
Posts: 171
    
    1
<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


Sun Certified Programmer for the Java 2 Platform
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How java implement Share Memory?