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: 111308,32c594a83e2d8db X-Google-Attributes: gid111308,public X-Google-Thread: 1164f8,32c594a83e2d8db X-Google-Attributes: gid1164f8,public X-Google-Thread: 114b0c,32c594a83e2d8db X-Google-Attributes: gid114b0c,public X-Google-ArrivalTime: 1993-10-08 19:20:35 PST Xref: gmd.de comp.client-server:1477 comp.os.vms:32220 comp.sys.dec:10713 comp.sys.hp:25942 Newsgroups: comp.client-server,comp.os.vms,comp.sys.dec,comp.sys.hp Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!sol.ctr.columbia.edu!usc!news.service.uci.edu!gordius!mike From: mike@gordian.com (Michael Thomas) Subject: Re: Move from VMS to Open VMS or to HP-UX? Advice sought! Message-ID: <1993Oct9.005056.1911@gordian.com> Sender: news@gordian.com Organization: Idaho. No Trespassing. X-Newsreader: TIN [version 1.1 PL9] References: <1993Oct7.185427.2821@cmkrnl.com> Date: Sat, 9 Oct 1993 00:50:56 GMT jeh@cmkrnl.com wrote: > 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. Heh. Back in the good old days, my private benchmark of VUPS was the speed of lib$spawn. It was convenient because I could do it using 1-Mississippi's. :-) > 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...) Not at all. I'm not saying that it is technically impossible, I'm saying that it is a relative pain in the butt. Also, the VMS paradigm of relatively expensive process creation becomes expensive. VMS's attitude is to cram as much as is humanly possible into one process context with multiple treads of execution flying around (through AST's), and Unix's is it cheapen process creation and limit asynchronous events. I'm not positive (quantifyably), but it has always been my impression that MBX I/O is quite a bit slower on the whole than unix pipes. This is probably not all that surprising, since pipes are *so* much more important in unix than they are in VMS. > That way you avoid all the supervisor mode "voodoo" (not that there's much to > it anyway). Well, suffice it to say, it is a little bit more work than writing a program who's stdin and stdout point at a terminal, and changing an entry in passwd file. I'll leave the pins and doll to somebody else. > 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. [deletia] Actually, probably the single largest point making true shell independence in VMS (which I neglected the first time) is the implicit use of cli$getval et. al. Programs which implicitly use these functions (which is to say, almost every VMS utility known to man) cease to function when deprived of DCL. This is a major hassle. Writing daemon processes essentially deprived of DCL is a substantial amount more work than consing up the same thing in unix. It's not undoable, but it's not especially fun either. -- Michael Thomas (mike@gordian.com) "I don't think Bambi Eyes will get you that flame thrower..." -- Hobbes to Calvin USnail: 20361 Irvine Ave Santa Ana Heights, Ca, 92707-5637 PaBell: (714) 850-0205 (714) 850-0533 (fax)