From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 10 10:41:56 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4772316A4BF for ; Wed, 10 Sep 2003 10:41:56 -0700 (PDT) Received: from smtp.omnis.com (smtp.omnis.com [216.239.128.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB8FB44001 for ; Wed, 10 Sep 2003 10:41:55 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from salty.rapid.stbernard.com (corp-2.ipinc.com [199.245.188.2]) by smtp-relay.omnis.com (Postfix) with ESMTP id 92C1A1B325; Wed, 10 Sep 2003 10:41:54 -0700 (PDT) From: Wes Peters Organization: Softweyr.com To: Lev Walkin , zera holladay Date: Fri, 5 Sep 2003 11:47:39 -0700 User-Agent: KMail/1.5.2 References: <20030830025645.37066.qmail@web41408.mail.yahoo.com> <3F501A86.4010805@netli.com> In-Reply-To: <3F501A86.4010805@netli.com> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200309051146.35868.wes@softweyr.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit cc: hackers@freebsd.org Subject: Re: Shared memory question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Sep 2003 17:41:56 -0000 On Friday 29 August 2003 20:31, Lev Walkin wrote: > zera holladay wrote: > > When one uses the term "shared memory" while > > discussing Unix, then what is generally the meaning of > > that term? I have read that some Unixes have "shared > > memory" for "shared objects." > > [...] > > Shared memory is just a chunk of memory which may be > created by one program and attached to (by) many other programs. > Yes, the management (allocation and deallocation) of shared > memory chunks are done in kernel. User space applications > have to use shmget(2), shmat(2), shmdt(2) system calls > to obtain, attach and release the chunk of shared memory. Or mmap(2) with the MAP_SHARED attribute set. -- "Where am I, and what am I doing in this handbasket?" Wes Peters wes@softweyr.com