Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Aug 2001 11:57:12 +0100
From:      fergus <tofergus@yahoo.co.uk>
To:        hackers <freebsd-hackers@freebsd.org>
Subject:   shared memory models/techniques
Message-ID:  <20010818115712.A16397@dedog.argus-systems.co.uk>

next in thread | raw e-mail | index | archive | help
hope this is an ok place to post this.

as far as i can tell there are three ways to share memory between processes -
using mmap, ipc shared mem or skip it using threads instead.

is this right?

basically i have a server process accepting many connections & i was using
threads, however, it doesn't really make sense processes would probably be
simpler with shared mem.  i was going to use IPC but don't like building
uncessesary dependancies (i.e. it's a kernel option).

is mmap the best way to do this?  why would you use ipc instead?

. . . and finally (milking the assistance to the last) is there a really
simple app using shared mem resources that anyone knows about so i can butcher
it?

thanks in advance.

fergus

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010818115712.A16397>