[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 197
  • Last Modified:

data seqments address

When a process forks a child, they share the text(code)  but the data seqments are different.I use variables: edata, end to get the addresses of data part of the child process and its parent process but they are the same. I think because they are offset address. Is there system call that can get the segment address?
Please tell me the way to show that the data seqments of one process and its child process are different.
0
pttthao
Asked:
pttthao
1 Solution
 
rbrCommented:
I think you can't since this is very system specific. Very processor ad unix flavour use a different memory controlling method. If you want to share memory between 2 processes you have to use shared memory.

Check
http://yara.ecn.purdue.edu/~pplinux/PPHOWTO/pphowto.html
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now