LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-16-2006, 06:43 PM   #16
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,665
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945

Quote:
Originally Posted by kefeng.chen
I want to exactly copy the data segment of a process to the memory space of another process running on another computer, so that the target process can use the same pointer to access the same data.
If you want to do that, you can't expect to do that with the process's data segment. Instead, all of the processes must request and attach-to a shared memory segment .. making sure that the mapping is at the same address in everyone's virtual-memory space.

When you do this (successfully), Linux will set up your page-tables so that every one of you has access to the same virtual-memory pages, at exactly the same virtual addresses. Changes made by any process will be simultaneously and instantly reflected in every other one, because each and every one of you has access to exactly the same set of physical page-frames.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Advanced Linux memory management? ideasman Linux - Software 4 02-14-2006 12:18 AM
Does Linux have virtual memory management APIs? neo_in_matrix Programming 7 06-05-2005 10:44 AM
Regarding Memory management in Linux alfredhitchcock Programming 4 09-07-2004 03:20 AM
Linux Memory Management beatlelane Red Hat 5 10-04-2003 12:39 AM
linux memory management kb8doa Linux - Newbie 1 06-18-2003 10:36 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration