home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / programm / 3863 < prev    next >
Encoding:
Text File  |  1992-07-23  |  1.2 KB  |  34 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!gatech!udel!gvls1!gvls1!rickt
  3. From: rickt@gvls1.gvl.unisys.com (Rick Thompson)
  4. Subject: Shared Memory and Semaphores
  5. Message-ID: <1992Jul23.155158.8075@gvl.unisys.com>
  6. Sender: rickt@gvl.unisys.com
  7. Nntp-Posting-Host: gvls1
  8. Organization: Unisys Defense Systems, Great Valley Labs, Paoli, Pa
  9. Date: Thu, 23 Jul 1992 15:51:58 GMT
  10. Lines: 22
  11.  
  12.  
  13. Hello,
  14.  
  15.   I have a couple questions regaurding shared memory and semaphores.
  16.  
  17.   1)  I've created a shared memory area using shmget and my processes
  18.       can communicate correctly.  However, it is possible for any one of
  19.       the processes to remove the partion even though the others are still
  20.       using it.  The processes are all running under the same user so any
  21.       process has permission to remove it.  Is there a way to prevent the
  22.       removal if the memory is still in use?
  23.  
  24.   2)  I need the ability to lock out a portion of shared memory in
  25.       some critical regions of the code.  Is it possible using semget and
  26.       semctl to do this?  Again, the processes using the shared memory are
  27.       running under the same user.
  28.  
  29.  
  30.       Thanks,
  31.  
  32.       Rick  rickt@gvl.unisys.com
  33.  
  34.