On Sun, Aug 17, 2014 at 09:22:31PM +0200, q_AT_c9x.me wrote:
> This is OS X specific and weird in my opinion, if you want multiple windows
> lauch multiple processes. It is safer, you can limit the impact of a crash
> to a single window. It is also memory efficient thanks to (haters gonna
> hate) dynamic link.
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.
Regards,
--
Roberto E. Vargas Caballero
Received on Sun Aug 17 2014 - 22:12:13 CEST