home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / arch / 11977 < prev    next >
Encoding:
Text File  |  1992-12-29  |  3.4 KB  |  88 lines

  1. Newsgroups: comp.arch
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!decwrl!deccrl!news.crl.dec.com!news!nntpd.lkg.dec.com!ryn.mro4.dec.com!news
  3. From: pjdm@chmeee.enet.dec.com (Peter Mayne)
  4. Subject: Re: <None> (Should be Open Systems, bloody NEWS system...)
  5. Message-ID: <1992Dec29.003728.9977@ryn.mro4.dec.com>
  6. Lines: 75
  7. Sender: news@ryn.mro4.dec.com (USENET News System)
  8. Reply-To: Peter.Mayne@cao.mts.dec.com
  9. Organization: Digital Equipment Corporation
  10. References: <1992Dec23.050719.4047@ryn.mro4.dec.com> <id.CG2W.R8A@ferranti.com> <1992Dec23.212321.26522@ryn.mro4.dec.com> <id.SQ3W.IB6@ferranti.com>
  11. Date: Tue, 29 Dec 1992 00:37:28 GMT
  12.  
  13.  
  14. In article <id.SQ3W.IB6@ferranti.com>, peter@ferranti.com (peter da silva) writes:
  15. >> OK, try this. VMS has something called an AST (Asynchronous System Trap) which
  16. >> is similar to a user-mode interrupt.
  17. >
  18. >Yes, I'm familiar with it from RMX.  There, at least, unless you're working
  19. >in assembler it's something to be used with extreme care lest you trash the
  20. >language runtime.
  21.  
  22. RMX? No extra care required in VMS, from assembler or HLL. (Apart from the
  23. usual synchronisation techniques, of course.)
  24.  
  25. >> This may occur at any time: for instance,
  26. >> an asynchronous I/O can call an AST routine when the I/O completes. When the
  27. >> AST routine completes, control returns to the code that was executing at the
  28. >> time the AST occurred. (The analogy in NT is the APC, or Asynchronous
  29. >> Procedure Call.)
  30. >
  31. >And in UNIX the analog is a "signal". Now, a signal is a little "safer" than
  32. >an AST (at least as under RMX), in that it's guaranteed to run in your task
  33. >context.
  34.  
  35. So is an AST in VMS, and an APC in NT. Nothing "unsafe" about it.
  36.  
  37. They aren't exactly analagous. An AST also carries a (program-provided)
  38. value, a signal is one of a particular set of values. A signal can come
  39. from another process, an AST can only occur from (or on behalf of) the current
  40. process.
  41.  
  42. >> how can I use these non-reentrant routines safely in an AST
  43. >> routine without screwing things up?
  44. >
  45. >You can't. Can you really do
  46. >
  47. >    WRITE (*,10) AA
  48. > 10    FORMAT (1X,80A1)
  49. >
  50. >in an AST under VMS?
  51.  
  52. Don't know about FORTRAN, but I've done I/O in BASIC, BLISS, and Pascal from
  53. ASTs with no hassles.
  54.  
  55. >> >But the UNIX operating system interface is centered on the file system.
  56. >
  57. >> But that doesn't mean that I can put an ACL on a UNIX operating system object.
  58. >
  59. >A UNIX "operating system object" *is* a file. If the file system supports ACLs
  60. >you certainly can. What "operating system objects" are you trying to put an
  61. >ACL on?
  62.  
  63. NT (for example) supports at least two file systems, DOS and NTFS. NTFS has
  64. ACLs, DOS doesn't. If an operating system object is a file, which filing
  65. system does it use?  If I only use DOS, does that mean that NT suddenly loses
  66. the ability to use ACLs?
  67.  
  68. >Go read the Plan 9 papers, or get an Amiga. It's not new technology by
  69. >any means: AmigaDOS was shipped in 1985, and based on an older operating
  70. >system from Cambridge called Tripos (note, not all interesting O/S
  71. >design is from the US).
  72.  
  73. I know, I've been to the restaurant that the operating system was named after.
  74. :-)
  75.  
  76. >-- 
  77. >Peter da Silva                                            `-_-'
  78. >Ferranti International Controls Corporation                'U` 
  79. >Sugar Land, TX  77487-5012 USA
  80. >+1 713 274 5180                            "Zure otsoa besarkatu al duzu gaur?"
  81.  
  82. PJDM
  83. --
  84. Peter Mayne                     | My statements, not Digital's.
  85. Digital Equipment Corporation   |
  86. Canberra, ACT, Australia        | "AXP!": Bill the Cat
  87.  
  88.