Em seg 17 mar 2014, às 21:27:00, Damian Ivanov escreveu: > Hi, > > A general question but maybe you are so kind and help me :-) > /usr/lib/libMyLib.so and > /opt/MyProj/lib/libMyLib.so > (100% indentical files) > So when I have 2 programs: one uses the one and the other, the other > lib, will they still share memory?
That depends on the operating system in question. Linux, in general, will not share the pages if they don't come from the exact same file. However, if KSP is enabled, the kernel might realise the pages are identical and drop one copy. I would recommend you don't depend on it, so simply don't duplicate the files. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest