Date: Mon, 12 Jan 1998 11:16:48 -0800 (PST) From: Tom <tom@sdf.com> To: Chrisy Luke <chrisy@flix.net> Cc: joelh@gnu.org, freebsd-hackers@FreeBSD.ORG Subject: Re: sharable static arrays? Message-ID: <Pine.BSF.3.95q.980112105953.9226C-100000@misery.sdf.com> In-Reply-To: <19980112112455.48744@flix.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 12 Jan 1998, Chrisy Luke wrote: > Joel Ray Holveck wrote (on Jan 12): > > Are static arrays shared across multiple invocations of a program? > > Not intrinsicly. You'll have to either use SYS-V style shared > memory (options SYSVSHM SYSVSEM SYSVMSG in a kernel config and > shmget(2) etc) or use BSD style mapped memory (mmap(2)). Remember these are _static_ arrays, which mean they are directly coded into C. And yes, they should be shared across multiple invocations, although it can be difficult to see this. COW is used heavily, so even things that can change aften often shared, up to the point they are changed. > Chris. > -- > == chris@easynet.net, chrisy@flix.net, chrisy@flirble.org. > == Head of Systems for Easynet Group PLC. Tom
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.980112105953.9226C-100000>