Re: [dev] [st] will global-less changes be wanted upstream?

From: <q_AT_c9x.me>
Date: Mon, 18 Aug 2014 02:54:27 +0200

On Sun, Aug 17, 2014 at 10:12:13PM +0200, Roberto E. Vargas Caballero wrote:
> Sorry, it is efficient due to text sharing and, in some cases, to
> copy on write. When you run multiple instances of a static linked program
> usual OS make that all these process share the pages of the text segment.
> If all the process are spawn from a common parent then they also share
> data pages until they modified them (that sometime is never). you can see
> that dynamic linking doesn't help in this case (same instances of the
> same program). Dynamic libraries can help sharing pages between process
> of diferent executables.

Thanks for that, your pedantry is welcome. I ignored this text sharing
feature of operating systems, I thought only the libraries pulled in were
shared.

Best,

-- q
Received on Mon Aug 18 2014 - 02:54:27 CEST

This archive was generated by hypermail 2.3.0 : Mon Aug 18 2014 - 03:00:09 CEST