[tpm] fork and blessed hash references

Uri Guttman uri at StemSystems.com
Thu Jan 14 08:11:39 PST 2010


>>>>> "IS" == Indy Singh <indy at indigostar.com> writes:

  >> 1. Why do the self references match when they don't (apparently) use
  >> the same memory space

  IS> The two processes use the same logical memory address, but it gets
  IS> mapped to a differnt physical address.  This way the processes are
  IS> protected from each other.  If you really wanted to share memory you
  IS> would have to call the memory sharing functions provided by the OS.

just to be pedantic, they map to the same virtual address and you don't
know or care about the physical address. in fact, some of the perl
interpreter could map to same physical address if it is read only binary
code. and some of the data space could also be mapped to the same
physical address if that is marked copy-on-write.

uri

-- 
Uri Guttman  ------  uri at stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------


More information about the toronto-pm mailing list