home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!news.ans.net!cmcl2!rlgsc.com!gezelter
- From: gezelter@rlgsc.com
- Newsgroups: comp.os.vms
- Subject: Re: SMG$ routines: Just how non-reenterent are they?
- Message-ID: <1992Dec15.095201.279@rlgsc.com>
- Date: 15 Dec 92 09:52:01 EST
- References: <1992Dec14.164356.28810@bnlux1.bnl.gov>
- Distribution: na
- Organization: Robert Gezelter Software Consultant, Flushing, NY
- Lines: 48
-
- In article <1992Dec14.164356.28810@bnlux1.bnl.gov>, kushmer@bnlux1.bnl.gov (christopher kushmerick) writes:
- > The manual says that SMG$ is not reenterent (spelling?).
- >
- > Does this mean that I should disable ASTs from occuring arounds each smg call
- > if my program uses AST routines triggered by timers, $qios et cetera?
- >
- > Or does it only mean that I should not do any SMG routines in any ASTs that may
- > interrupt a SMG routine?
- >
- > Thankyou
- >
- > --
- > Chris Kushmerick
- > kushmer@bnlux1.bnl.gov
- --
- Chris,
-
- When a routine is marked as "non re-entrant", it means that it
- can be called from EITHER normal program state or from AST state,
- but not both at the same time. This does not mean that other
- facilities in the same image cannot process ASTs, just that they
- must not invoke the non re-entrant routine.
-
- The question of whether a routine can operate in AST state is a
- different question. In my experience, most routines which are non
- re-entrant can be run from AST state, so long as they are only
- used from AST state. Offhand, I cannot categorically state that
- SMG is ok from AST state.
-
- On a related topic, I have rarely if ever seen a situation where
- it is necessary to inhibit AST recognition. Almost all examples
- where people suggest Inhibiting/Enabling AST Recognition are
- better (IMHO) done using either a) interlocked instructions, or
- b) processed in AST state through the use of the $DCLAST system
- seervice.
-
- 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 |
- +--------------------------------------------------------------------------+
-