home *** CD-ROM | disk | FTP | other *** search
- 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
- From: gezelter@rlgsc.com
- Newsgroups: comp.os.vms
- Subject: Re: sys$hiber/sys$wake problems?
- Message-ID: <1992Nov11.002512.248@rlgsc.com>
- Date: 11 Nov 92 00:25:12 EST
- References: <BxIAFn.2p6@unx.sas.com>
- Organization: Robert Gezelter Software Consultant, Flushing, NY
- Lines: 48
-
- In article <BxIAFn.2p6@unx.sas.com>, sasjzs@falcon.unx.sas.com (Joseph Slater) writes:
- >
- > Hi folks,
- > I have an application that hibernates and is awakened by ast
- > routines that call sys$wake. The details are far too complicated
- > to get into here, but the calls to wake frequently happen about
- > time the call is made to sys$hiber. Has anyone ever seen a sys$hiber
- > return when there is (or should be) no outstanding sys$wake?
- >
- > Any advice will be appreciated. Any heckling will be ignored.
- > Joe Slater
- > sasjzs@vms.sas.com
- > Mine opinion is mine only.
- >
- >
- --
- Joe,
-
- The HIBER call checks the flag PCBV_WAKEPEN in PCB$L_STS. If the
- flag was already set, the HIBER request is ignored.
-
- Thus, if I have followed your question correctly, there are two
- possible cases:
-
- - The HIBER preceded the WAKE in time. The mainline code will
- unHIBERnate when the WAKE is executed.
-
- - The WAKE preceded the HIBER in time. In this case the HIBER
- will be treated as a NO-OP (albeit a rather expensive one).
-
- Indeed, because of the way in which SCH$WAIT processes the
- HIBERnate request, the case of WakePending is actually executed
- on every process awakening (SCH$WAIT actually points the
- processes PC to the CHMK instruction in the system service
- vector.
-
- I hope that the above information is helpful. If I can be of
- further assistance, please feel free to contact me via phone or
- Email.
-
- - Bob
- +--------------------------------------------------------------------------+
- | Robert "Bob" Gezelter E-Mail: gezelter@rlgsc.com |
- | Robert Gezelter Software Consultant Voice: +1 718 463 1079 |
- | 35-20 167th Street, Suite 215 Fax: (on Request) |
- | Flushing, New York 11358-1731 |
- | United States of America |
- +--------------------------------------------------------------------------+
-