home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / vms / 12687 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  2.3 KB

  1. Path: sparky!uunet!sun-barr!cs.utexas.edu!sdd.hp.com!nigel.msen.com!yale.edu!cmcl2!rlgsc.com!gezelter
  2. From: gezelter@rlgsc.com
  3. Newsgroups: comp.os.vms
  4. Subject: Re: wait for event flag halts ast deliver
  5. Message-ID: <1992Jul22.042923.180@rlgsc.com>
  6. Date: 22 Jul 92 04:29:22 EST
  7. References: <1992Jul21.063732.12065@lugb.latrobe.edu.au>
  8. Organization: Robert Gezelter Software Consultant, Flushing, NY
  9. Lines: 43
  10.  
  11. In article <1992Jul21.063732.12065@lugb.latrobe.edu.au>, CS19241593T@LUST2.LATROBE.EDU.AU (Bernard Leach) writes:
  12. > Hey does anyone know why waiting for an event flag causes asts to stop being
  13. > delivered?  I really need to be able to wait on event flag... and the only way
  14. > to set the event flag is with an ast.
  15. > Arrgh!...
  16. > Thanks in advance!
  17. > | Bernard - CS19241593T@lust.latrobe.edu.au               |
  18. > | "Thou shalt not suffer a Pepsi, for it is the AntiCola" |
  19. -- 
  20. Bernard,
  21.  
  22. There are only two situations in which AST delivery is blocked by 
  23. doing a WAIT on an Event Flag. The first case, is if the WAIT 
  24. itself is at AST level. In that case, since the AST thread of 
  25. execution is still active, another AST cannot commence execution. 
  26. The second case involves use of the System Service to Disable AST 
  27. recognition. 
  28.  
  29. In my experience, the most likely cause of your problem is the 
  30. case of a WAIT being executed at AST level. The problem is 
  31. straightforward to detect. Look at the current PC when the 
  32. program is stuck, and check whether the program is waiting in AST 
  33. state, if it is, that is the problem.
  34.  
  35. IMHO, the use of the AST Inhibit System service is almost never a 
  36. "good" approach. I have never (at least as far back as I can 
  37. remember) needed to inhibit AST recognition from within a 
  38. program.
  39.  
  40. I hope that this information is useful. 
  41.  
  42. - Bob
  43. +--------------------------------------------------------------------------+
  44. | Robert "Bob" Gezelter                       E-Mail:  gezelter@rlgsc.com  |
  45. | Robert Gezelter Software Consultant         Voice:   +1 718 463 1079     |
  46. | 35-20 167th Street, Suite 215               Fax:       (on Request)      |
  47. | Flushing, New York  11358-1731                                           |
  48. | United States of America                                                 |
  49. +--------------------------------------------------------------------------+
  50.