Date: Wed, 24 Jul 1996 10:21:09 +0000 () From: "Lenzi, Sergio" <lenzi@cwbone.bsi.com.br> To: amnuay muthitacharoen <amnuay@comnet.spu.ac.th> Cc: freebsd-questions@freebsd.org Subject: Re: Shared varibles between processes Message-ID: <Pine.BSF.3.91.960724101806.1378C-100000@sergio.lenzi> In-Reply-To: <Pine.AUX.3.91.960724101751.23093A-100000@comnet.spu.ac.th>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 24 Jul 1996, amnuay muthitacharoen wrote: > How can I write C program to use varibles that can be shared > beween processes? Use the shared memory feature of the OS. man shmget.. k=shmget(....) this whill create a shared memory with an identifier->k x=shmat(k,...) this will attach that shared memory to an identifier(char *) type. On another process, do the same code, and the memory portion will be shared between process... Hope this will help...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960724101806.1378C-100000>
