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

  1. Path: sparky!uunet!usc!cs.utexas.edu!sdd.hp.com!saimiri.primate.wisc.edu!usenet.coe.montana.edu!rpi!news.ans.net!cmcl2!rlgsc.com!gezelter
  2. From: gezelter@rlgsc.com
  3. Newsgroups: comp.os.vms
  4. Subject: Re: sys$hiber/sys$wake problems?
  5. Message-ID: <1992Nov11.003646.249@rlgsc.com>
  6. Date: 11 Nov 92 00:36:46 EST
  7. References: <BxIAFn.2p6@unx.sas.com> <1992Nov10.180054.23127@fripp.ri.cadre.com> <BxIrqM.2pF@unx.sas.com>
  8. Organization: Robert Gezelter Software Consultant, Flushing, NY
  9. Lines: 48
  10.  
  11. In article <BxIrqM.2pF@unx.sas.com>, sasjzs@falcon.unx.sas.com (Joseph Slater) writes:
  12. > In article <1992Nov10.180054.23127@fripp.ri.cadre.com>,
  13. >  rj@cadre.com (Rob deFriesse) writes:
  14. > |>
  15. > |>    If one or more wakeup requests are issued for the process while it is not
  16. > |>    hibernating, the next hibernate call returns immediately;  that is, the
  17. > |>    process does not hibernate.  ...
  18. > |>
  19. > |>This is, in fact, the correct behavior for a semaphore.  If it doesn't work
  20. > |>this way, your process could block indefinately.
  21. > |>
  22. > Hi Rob,
  23. >    And all others that responded via e-mail. You are correct, 
  24. > however we aren't the ones calling sys$wake. After leaving
  25. > sys$hiber the next-to-last time, the bit pcb$v_wakepen bit is
  26. > clear. The next time we start to enter sys$hiber it is set and
  27. > we don't call sys$wake anywhere in between. (This is what 
  28. > upsets us as we hope to set up things before calling sys$wake, 
  29. > and when we don't we exit from hiber in an unknown state). I
  30. > suspect (thanks Matt) the PPL$ runtime library as this scheme 
  31. > has worked successfully for many years and PPL is the only new 
  32. > variable in the scheme. My next task is to try to trap calls 
  33. > to sys$wake from the main and sharable images. Any ideas on 
  34. > doing this? I may have a hard time convicing our system manager 
  35. > to let me patch the system service vectors. Read that as slim to none. 
  36. > Joe Slater
  37. > sasjzs@vms.sas.com
  38. > Mine opinion is just that.
  39. -- 
  40. Joe,
  41.  
  42. Another option. Have a flag variable which you set from your WAKE 
  43. routine indicating that there is work to be done by the mainline 
  44. code. Then, when you get returned from the HIBER, if the flag 
  45. variable is NOT set, loop back to the HIBER. I first encountered 
  46. almost this exact problem in RSX, where a task could be 
  47. spuriously unstopped. 
  48.  
  49. - Bob
  50. +--------------------------------------------------------------------------+
  51. | Robert "Bob" Gezelter                       E-Mail:  gezelter@rlgsc.com  |
  52. | Robert Gezelter Software Consultant         Voice:   +1 718 463 1079     |
  53. | 35-20 167th Street, Suite 215               Fax:       (on Request)      |
  54. | Flushing, New York  11358-1731                                           |
  55. | United States of America                                                 |
  56. +--------------------------------------------------------------------------+
  57.