Question about Share Memory or Vi?

Question about Share Memory or Vi?

Post by Alex Yu » Wed, 15 Dec 1993 23:40:05



Newsgroups: unix-pc-general,comp.sources.unix,comp.unix.internals
Subject: Question About Share Memory?
Summary:
Followup-To:
Distribution: world
Organization: Hong Kong Internet & Gateway Services Ltd.
Keywords:

Hiya,
    I am working on a project that requires me to put a program into memory
resident so that there will be no duplicate copies in ram memory when more
than one user using that. Could anyone give me any hints on how could I do
that on a hp9000 server? I believe that vi using a similar method to handle
multiple user but really got no idea how vi works and implemented.

Any helps will be appreciated!! Please E-mail me!

Sincerely,
Alex,

 
 
 

Question about Share Memory or Vi?

Post by Jayakrishnan » Thu, 23 Dec 1993 13:32:46


Alex >
Alex >   Hiya,
Alex >       I am working on a project that requires me to put a program into memory
Alex >   resident so that there will be no duplicate copies in ram memory when more
Alex >   than one user using that. Could anyone give me any hints on how could I do
Alex >   that on a hp9000 server? I believe that vi using a similar method to handle
Alex >   multiple user but really got no idea how vi works and implemented.
Alex >
Alex >   Any helps will be appreciated!! Please E-mail me!
Alex >

        Editors like /usr/ucb/vi use the sticky bit to achieve this.If
the sticky bit is set  then the first  time the program is executed, a
copy of the program's text is saved in the  swap area when the process
is terminated.This causes  the program  to  be loaded faster  the next
time it is executed.

JK
_____________________________________________________________________________

National Centre for Software Technology  Fax  : +91 (22) 621 0139
Gulmohar Cross Road No. 9                Phone: +91 (22) 620 1606
Juhu, Bombay 400 049, INDIA              Telex: +81 (11) 78260 NCST IN
_____________________________________________________________________________

 
 
 

Question about Share Memory or Vi?

Post by Fco. J. Ballester » Fri, 24 Dec 1993 16:54:55



Quote:>       Editors like /usr/ucb/vi use the sticky bit to achieve this.If
>   the sticky bit is set  then the first  time the program is executed, a
>   copy of the program's text is saved in the  swap area when the process
>   is terminated.This causes  the program  to  be loaded faster  the next
>   time it is executed.

        This used to be true, but now I don't know if OS's are using the
sticky bit to achieve this. I guess at least SunOS doesn't use it so.
Someone knows?

--
                _==|                +------------------------------+  
           _==|   )__)  |           |  Francisco J. Ballesteros    |  

Pirate!     )___) )____))_)         +------------------------------+  
       _    )____)_____))__)\                                              
        \---__|____/|___|___-\\---
^^^^^^^^^\   oo oo oo oo     /~~^^^^^^^
  ~^^^^ ~~~~^^~~~~^^~~^^~~~~~
    ~~^^      ~^^~     ~^~ ~^ ~^
         ~^~~        ~~~^^~
(Guarning: Not a computer pirate!)