home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / apollo / 3959 < prev    next >
Encoding:
Text File  |  1992-11-14  |  1.8 KB  |  49 lines

  1. Newsgroups: comp.sys.apollo
  2. Path: sparky!uunet!caen!sdd.hp.com!apollo.hp.com!netnews
  3. From: ganek@apollo.hp.com (Dan Ganek)
  4. Subject: Re: Making /lib/xmlib1.1 a global library in SR10.4
  5. Sender: usenet@apollo.hp.com (Usenet News)
  6. Message-ID: <BxoDqw.ss@apollo.hp.com>
  7. Date: Fri, 13 Nov 1992 22:13:43 GMT
  8. References: <1992Nov7.033430.26974@nrtpa038.bnr.ca> <1992Nov13.215059.1429@hpcvusn.cv.hp.com>
  9. Nntp-Posting-Host: menage_a_trois.ch.apollo.hp.com
  10. Organization: Hewlett-Packard Corporation, Chelmsford, MA
  11. Lines: 36
  12.  
  13. In article <1992Nov13.215059.1429@hpcvusn.cv.hp.com> tomg@hpcvusc (Thomas J. Gilg) writes:
  14. >Bill Gutknecht (bag@node_1f11c.bnr.ca) wrote:
  15. >> I'd like to make the library globaly loaded in an effort to save memory 
  16. >> and help performance .....
  17. >> 
  18. >> Anyhow, I entered the following two lines into /etc/sys.conf
  19. >> 
  20. >> lib xtlib.r4, global, optional  # Needed to resolve globals in xmlib1.1
  21. >> lib xmlib1.1, global, optional
  22. >
  23. >Under Domain/OS, the load order of shared libraries is very critical.  As
  24. >an example, consider the sequence of events when running vuewm:
  25. >
  26.  [inlibing info deleted]>
  27. >
  28. >A key question for which I don't have an answer is whether shared libraries
  29. >in /etc/sys.conf will have their main() routines executed if they have one.
  30. >In the X/Motif libraries, it is absolutly critical that the main() routines
  31. >in the libraries get executed so that things like vendorShell can be
  32. >properly initialized.
  33. >
  34. >
  35. >Thomas Gilg
  36. >tomg@cv.hp.com
  37. >
  38.  
  39. Bill, making a library global doesn't save memory (real or virtual) 
  40. over inlibing. It doesn't help performance much either.
  41.  
  42. Tom, the main routine of a global library is executed for EVERY process that
  43. is started whether it uses it or not. For that reason, global libs should NOT
  44. have a main() unless it is absolutely necessary.
  45.  
  46. (At least that's what I rememebr from the good old days)
  47.  
  48. /dan
  49.