home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!cs.utexas.edu!sdd.hp.com!nigel.msen.com!yale.edu!cmcl2!rlgsc.com!gezelter
- From: gezelter@rlgsc.com
- Newsgroups: comp.os.vms
- Subject: Re: wait for event flag halts ast deliver
- Message-ID: <1992Jul22.042923.180@rlgsc.com>
- Date: 22 Jul 92 04:29:22 EST
- References: <1992Jul21.063732.12065@lugb.latrobe.edu.au>
- Organization: Robert Gezelter Software Consultant, Flushing, NY
- Lines: 43
-
- In article <1992Jul21.063732.12065@lugb.latrobe.edu.au>, CS19241593T@LUST2.LATROBE.EDU.AU (Bernard Leach) writes:
- >
- > Hey does anyone know why waiting for an event flag causes asts to stop being
- > delivered? I really need to be able to wait on event flag... and the only way
- > to set the event flag is with an ast.
- >
- > Arrgh!...
- >
- > Thanks in advance!
- >
- > | Bernard - CS19241593T@lust.latrobe.edu.au |
- > | "Thou shalt not suffer a Pepsi, for it is the AntiCola" |
- --
- Bernard,
-
- There are only two situations in which AST delivery is blocked by
- doing a WAIT on an Event Flag. The first case, is if the WAIT
- itself is at AST level. In that case, since the AST thread of
- execution is still active, another AST cannot commence execution.
- The second case involves use of the System Service to Disable AST
- recognition.
-
- In my experience, the most likely cause of your problem is the
- case of a WAIT being executed at AST level. The problem is
- straightforward to detect. Look at the current PC when the
- program is stuck, and check whether the program is waiting in AST
- state, if it is, that is the problem.
-
- IMHO, the use of the AST Inhibit System service is almost never a
- "good" approach. I have never (at least as far back as I can
- remember) needed to inhibit AST recognition from within a
- program.
-
- I hope that this information is useful.
-
- - 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 |
- +--------------------------------------------------------------------------+
-