home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / cplus / 19874 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.8 KB

  1. Path: sparky!uunet!olivea!charnel!rat!usc!howland.reston.ans.net!sol.ctr.columbia.edu!hamblin.math.byu.edu!hellgate.utah.edu!asylum.cs.utah.edu!clark
  2. From: clark%asylum.cs.utah.edu@cs.utah.edu (Charles Clark)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Objects in Shared Memory
  5. Message-ID: <1993Jan25.105459.4799@hellgate.utah.edu>
  6. Date: 25 Jan 93 17:54:58 GMT
  7. References: <19930125.084616.825@almaden.ibm.com>
  8. Sender: clark@cs.utah.edu
  9. Followup-To: comp.lang.c++
  10. Organization: University of Utah Computer Science
  11. Lines: 26
  12.  
  13. In article <19930125.084616.825@almaden.ibm.com> jimi@vnet.ibm.com (Jim Meyers) writes:
  14. >>
  15. >>The first of these approaches is not complete in that it does not
  16. >>address the problem of intra-object references.  Thus, virtual base classes
  17. >>can not be used in the inheritance hierarchy of the shared objects.
  18. >
  19. >This is not all clear to me... Can you elaborate on why you believe that
  20. >Jordan's method does not support intra-object references?
  21.  
  22. After reviewing Jordan's paper, I see that intra-object references will
  23. resolve correctly (Jim, thanks for pointing this out).  His method 
  24. requires that, not only the location of the vtable be coordinated, but 
  25. also the location of the shared memory segment be coordinated.  This means 
  26. that each process which accesses the shared memory segment must attach 
  27. that memory segment at the same virtual memory address.  With the memory 
  28. segment at the same vm address, the intra-object references will resolve 
  29. correctly.  
  30.  
  31. Straying from the orignal subject a little, how can the location of the 
  32. shared memory segments be coordinated?  The vtable location is fixed at 
  33. link edit time, thus one would know then whether there is a conflict. 
  34. Since the creation and attachment of the shared memory segment is at run-
  35. time, how can one ensure that the vm address of each of the cooperating
  36. processes will be available?
  37.  
  38.     --Charles
  39.