lkml.org 
[lkml]   [2001]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[OT] Re: shared memory problem
On Tue, Jul 03, 2001 at 02:49:24AM -0600, Blesson Paul wrote:
> I have some confusion regarding key in shmget(). Let I
> have two shared memory variables. For the first one, I put key "99" and the
> size is 1024. Next, I put key "199" for the second variable and size 1024.
> Will the two shared memory area overwrite each other. How can I gurranty. Is
> the Linux kernel or the developer who should care about this problem

No, the segments will not overwrite each other, see man shmget and get
"Advanced programming in the UNIX environment" by Richard Stevens.


Erik

--
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands
Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:55    [W:0.043 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site