From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,47a06d19e281eb8d X-Google-Attributes: gidf7344,public X-Google-Thread: 111731,47a06d19e281eb8d X-Google-Attributes: gid111731,public X-Google-Thread: 1164f8,47a06d19e281eb8d X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-03-12 05:30:05 PST Xref: gmd.de comp.os.vms:42280 comp.sys.dec:14272 comp.unix.advocacy:1112 Path: gmd.de!newsserver.jvnc.net!darwin.sura.net!howland.reston.ans.net!europa.eng.gtefsd.com!news.umbc.edu!haven.umd.edu!nova.umd.edu!nova!rockwell From: rockwell@nova.umd.edu (Raul Deluth Miller) Newsgroups: comp.os.vms,comp.sys.dec,comp.unix.advocacy Subject: Re: Does UNIX do async i/o? Date: 12 Mar 1994 08:30:05 -0500 Organization: University of Maryland University College Distribution: world Message-ID: References: <1994Feb26.204059.4068@mixcom.mixcom.com> <11MAR199400234346@hearts.aces.com> <1994Mar11.144337.13745@inmos.co.uk>,<1994Mar11.190110.20289@integrity.uucp> <2lqrtk$99p@gap.cco.caltech.edu>,<2lrev2$q4u@news.utdallas.edu> <2lrgl0$nav@gap.cco.caltech.edu> NNTP-Posting-Host: nova.umd.edu In-reply-to: carl@SOL1.GPS.CALTECH.EDU's message of 12 Mar 1994 04:32:32 GMT Carl J Lydick: => You're missing the fact that doing async I/O on most Unix => systems is simply impossible. Sure, you could spawn a => subprocess for each I/O request you want to make, have each => subprocess issue a synchronous I/O request, then signal the => parent when it completed. Seems like a fair amount of => additional overhead to do something that could be incorporated => in the system I/O routines. Mark A Harrison: =Haven't you been paying attention? Do we need to repost the man =pages? These are modern times, we have THREADS these days! Carl J Lydick: Some do. A lot don't. Hmm.. user level threads can be implemented on any system where there's a user that has enough of an understanding of the underlying machine to save machine state. But, that's just an aside. On those unix systems where "true asynch I/O" or "true [kernel] threads" haven't been implemented, it's possible to achieve most of the benefits of asynch i/o using select (synchronous multiplexed i/o) in conjunction with non-blocking (polling) i/o. You do have to do a bit of queue management, but that's easy compared to issues like race conditions [which don't go away when you go to kernel support for asynch i/o]. But that's still an aside. I've still not seen a discussion of the VMS library design where, in essence, all VMS i/o is done with what would be an ioctl() under unix, and there's all these useless arguments to be specified even in simple cases where they're not needed. Seems to me that VMS is providing a low-level mechanism here, with all that implies. Which brings me back to my judgement that Unix provides a lot more ("higher level") modularity than VMS. Or, most of the benefits of VMS have to do with it providing a lower level machine interface. [Flashback to the "assembly" vs "high level language" wars of yesteryear.] Raul D. Miller