home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / aix / 13736 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  1.8 KB

  1. Path: sparky!uunet!opl.com!hri.com!spool.mu.edu!olivea!hal.com!decwrl!csus.edu!netcom.com!netcomsv!mbeckman!mbeckman
  2. From: mbeckman@mbeckman.mbeckman.com (Mel Beckman)
  3. Newsgroups: comp.unix.aix
  4. Subject: semop overflows after 16,384 calls!
  5. Message-ID: <01050810.oljql1@mbeckman.mbeckman.com>
  6. Date: 26 Jan 93 19:21:58 GMT
  7. Reply-To: mbeckman@mbeckman.com
  8. Organization: Beckman Software Engineering
  9. Lines: 29
  10. X-Mailer: uAccess LITE - Macintosh Release: 1.5v5
  11.  
  12. We're using the semop operation to synchronize two tasks, where process A does
  13. a semsignal, and process B does a semwait. The semop operation uses a semundo
  14. flag so that the value of the semop is subtracted from the calling processes
  15. semadj value. The problem is, after 16,384 semsignal calls, we get a semop
  16. error of "RESULT TOO LARGE". Apparently, semwait in process B is not decrementing
  17. the semadj value and it overflows. 
  18.  
  19. Questions:
  20.  
  21.   1. Can the semaphore operations be performed without the semundo flag?
  22.  
  23.   2. If process A keeps issuing semsignal and process B uses semwait, how
  24. is semadj value maintained?
  25.  
  26.   The AIX documentation for the semxxx operations is very scanty, and none
  27. of the flags are explained anywhere we can find. We're in urgent need of
  28. an answer on this, because we have a demo of this package next monday! 
  29. Help!
  30.  
  31.   -mel
  32.  
  33. _____________________________________________________________________
  34. | Mel beckman                  |    Internet: mbeckman@mbeckman.com |
  35. | Beckman Software Engineering |  Compuserve: 75226,2257            |
  36. | 1201 Nilgai Place            |       Voice: 805/647-1641          |
  37. | Ventura, CA 93003            |         Fax: 805/647-3125          |
  38. |______________________________|____________________________________|
  39.  "Internet is big.  Really Big.  It gives the idea of
  40.   infinity much better than infinity itself." 
  41.    (with apologies to Douglas Adams)
  42.