From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,32c594a83e2d8db X-Google-Attributes: gidf7344,public X-Google-Thread: 114b0c,32c594a83e2d8db X-Google-Attributes: gid114b0c,public X-Google-Thread: 1164f8,32c594a83e2d8db X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-10-07 22:33:48 PST Xref: gmd.de comp.os.vms:32135 comp.sys.dec:10663 comp.sys.hp:25839 Path: gmd.de!xlink.net!howland.reston.ans.net!agate!dog.ee.lbl.gov!newshub.nosc.mil!crash!cmkrnl!jeh From: jeh@cmkrnl.com Newsgroups: comp.os.vms,comp.sys.dec,comp.sys.hp Subject: Re: Move from VMS to Open VMS or to HP-UX? Advice sought! Message-ID: <1993Oct7.185427.2821@cmkrnl.com> Date: 7 Oct 93 18:54:27 PDT References: <28vscu$8br@agate.berkeley.edu> <1993Oct7.023037.18596@gordian.com> Followup-To: comp.client-server,comp.os.vms,comp.sys.dec,comp.sys.hp Organization: Kernel Mode Systems, San Diego, CA In article <1993Oct7.023037.18596@gordian.com>, mike@gordian.com (Michael Thomas) writes: > There are plenty of good things to be said about VMS, but > flexibility through cheap process creation (and all it implies) > is something that Unix spanks VMS's butt on. I wouldn't go as far as that, but $CREPRC *is* pretty slow by Unix fork() standards. > Also, unix doesn't > have the silly restrictions about the CLI running in supervisor > mode, and the voodoo that is associated with it. You want DCL > on Unix, just write it. Consing up csh for VMS is a much scarier > proposition. I don't see this at all. You want a csh for VMS that stays in user mode and $CREPRC's subprocesses (you don't have to use [LIB$]SPAWN, you know, and if you're not running DCL commands in the subprocs there isn't much reason to) for all commands? Fine, there's nothing stopping you from doing that. There is certainly nothing in RMS or in the VMS kernel that insists that a program that behaves like a CLI has to run in supervisor mode, or has to run its code in P1 space, or anything like that. (Last time I looked, you could invoke $CREPRC from user mode...) That way you avoid all the supervisor mode "voodoo" (not that there's much to it anyway). But... you may run into some "interesting" problems when it comes to sharing your stdin and stdout between the CLI and the subprocesses it creates. Similar for other files and devices. That imo is what drove the VMS CLI into the "share the process with the programs invoked by the CLI" design model. There are a *lot* of security issues relating to ownership and access to allocated devices that just don't occur under Unix (mainly because the Unix kernel never bothered its pretty little head about such things. So you get horrors like the use of "lock files" to arbitrate for access to not-inherently-shareable devices like serial ports... and hope to Ghu that all code that wants those serial ports knows enough to ask for the lock file first....). --- Jamie Hanrahan, Kernel Mode Systems, San Diego CA Internet: jeh@cmkrnl.com (JH645) Uucp: uunet!cmkrnl!jeh CIS: 74140,2055