From owner-freebsd-current@FreeBSD.ORG Thu Aug 19 21:49:23 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B05A316A4CE for ; Thu, 19 Aug 2004 21:49:23 +0000 (GMT) Received: from pd4mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 740A443D2D for ; Thu, 19 Aug 2004 21:49:23 +0000 (GMT) (envelope-from gbaratto@superb.net) Received: from pd2mr7so.prod.shaw.ca (pd2mr7so-qfe3.prod.shaw.ca [10.0.141.10])2003))freebsd-current@freebsd.org; Thu, 19 Aug 2004 15:46:11 -0600 (MDT) Received: from pn2ml1so.prod.shaw.ca ([10.0.121.145]) by pd2mr7so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0I2P00F1ZR4ZH1L0@pd2mr7so.prod.shaw.ca> for freebsd-current@freebsd.org; Thu, 19 Aug 2004 15:46:11 -0600 (MDT) Received: from chivas (S01060080c8118809.vc.shawcable.net [24.85.89.252]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with SMTP id <0I2P00F8LR4ZK6@l-daemon> for freebsd-current@freebsd.org; Thu, 19 Aug 2004 15:46:11 -0600 (MDT) Date: Thu, 19 Aug 2004 14:44:00 -0700 From: "Gustavo A. Baratto" To: freebsd-current@freebsd.org Message-id: <087b01c48635$d3ebc850$6400a8c0@chivas> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Mailer: Microsoft Outlook Express 6.00.2800.1437 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit X-Priority: 3 X-MSMail-priority: Normal Subject: memory question X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Aug 2004 21:49:23 -0000 This is a bit off-topic, but I haven't found this information in the freebsd website nor google... and this seems to be the most programmer oriented mailinglist If I have 2 or more different programs using the same shared library... The first program loads the .so at startup and keeps running. My question is that when the second program starts, does it have to load the .so again, or the memory used by the shared library will be shared between all the two programs? I know that different processes started by the same parent share the .so, but I wanna know if completely different programs started by different parents can share the same shared object. For example, if perl/DBI started from the shell, and php/mysql started from apache can share the same libmysqlclient.so in memory. Thanks for any information and sorry for the offtopic