home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / vms / 17767 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  2.3 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sdd.hp.com!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
  2. From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: sys$hiber/sys$wake problems?
  5. Date: 11 Nov 1992 00:16:44 GMT
  6. Organization: HST Wide Field/Planetary Camera
  7. Lines: 32
  8. Distribution: world
  9. Message-ID: <1dpjdcINNnss@gap.caltech.edu>
  10. References: <BxIAFn.2p6@unx.sas.com>
  11. Reply-To: carl@SOL1.GPS.CALTECH.EDU
  12. NNTP-Posting-Host: sol1.gps.caltech.edu
  13.  
  14. In article <BxIAFn.2p6@unx.sas.com>, sasjzs@falcon.unx.sas.com (Joseph Slater) writes:
  15. >
  16. >Hi folks,
  17. > I have an application that hibernates and is awakened by ast
  18. >routines that call sys$wake. The details are far too complicated 
  19. >to get into here, but the calls to wake frequently happen about
  20. >time the call is made to sys$hiber. Has anyone ever seen a sys$hiber
  21. >return when there is (or should be) no outstanding sys$wake?
  22.  
  23. When there is no outstanding call, no.  When there should be no outstanding
  24. call, certainly.  It's known as a bug in your code.
  25.  
  26. You might consider bracketing all your calls to $HIBER and $WAKE with code that
  27. will store the fact you've made the call someplace.  E.g., allocate an array
  28. and an index.  Zero both of them.  Every time you call $HIBER, set array[index]
  29. to 1 and increment index just before the call; every time you call $WAKE, set
  30. array[index] to 2 and increment index just before the call, if you want a
  31. detailed record of the calls.
  32.  
  33. If you just want to confirm the fact that your code is buggy, allocate a single
  34. variable.  Set the variable to 1 just after any call to $WAKE.  Set it to 0
  35. just after any call to $HIBER.  Just before any call to $HIBER, check the
  36. variable, and if it's set to one, report the fact that there was an unexpected
  37. call made to $WAKE.
  38. --------------------------------------------------------------------------------
  39. Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
  40.  
  41. Disclaimer:  Hey, I understand VAXen and VMS.  That's what I get paid for.  My
  42. understanding of astronomy is purely at the amateur level (or below).  So
  43. unless what I'm saying is directly related to VAX/VMS, don't hold me or my
  44. organization responsible for it.  If it IS related to VAX/VMS, you can try to
  45. hold me responsible for it, but my organization had nothing to do with it.
  46.