[EMAIL PROTECTED] said:
> so far i know parent and child process should have separate address
> space. but here the addresses are same in both the processes. r they
> sharing the same address space?
They are in different address spaces, which is why those addresses can be the
same without them interfering with each other.
If you look at the memory usage of other unrelated processes (look in
/proc/[pid]/maps), you'll see that they all have their binaries loaded a bit
higher than 0x8000000, they all have shared libraries starting at 0x40000000,
and they all have stacks ending at 0xc0000000.
The reason that they're not all tromping on each other is that those are
virtual addresses which are mapped to different physical addresses by the OS
and processor.
Jeff
_______________________________________________
techtalk mailing list
[EMAIL PROTECTED]
http://www.linux.org.uk/mailman/listinfo/techtalk