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: f6134,47a06d19e281eb8d X-Google-Attributes: gidf6134,public X-Google-Thread: 1164f8,47a06d19e281eb8d X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-03-12 15:48:13 PST Xref: gmd.de comp.org.decus:2994 comp.os.vms:42347 comp.sys.dec:14312 comp.unix.advocacy:1146 Path: gmd.de!newsserver.jvnc.net!yale.edu!cmcl2!rlgsc.com!gezelter From: gezelter@rlgsc.com Newsgroups: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy Subject: Re: Does UNIX do async i/o? Message-ID: <1994Mar12.184813.513@rlgsc.com> Date: 12 Mar 94 18:48:13 EST References: <1994Feb26.204059.4068@mixcom.mixcom.com> <1994Mar11.190110.20289@integrity.uucp> Organization: Robert Gezelter Software Consultant, Flushing, NY In article <1994Mar11.190110.20289@integrity.uucp>, jcrowe@zaphodmpd.tandem.com (Joseph Crowe) writes: > > ... Citations from earlier postings deleted ... > > I agree that most UNIX versions at this point do not provide async i/o > capabilities at the user level. My question is....so what? Why should the > user concern h(er|im)self with the intricacies of scatter/gather i/o at > the API level when it automatically gets handled in a hopefully optimal > way on h(er|is) behalf by the kernel and device drivers. Or am I missing > something. I remember doing scatter/gather async i/o almost twenty > years ago on the then UNIVAC 1100 mainframe. It's a nice exercise > to demonstrate what goes on at low levels. I believe that with the > addition of thread support in SVR4 ES/MP we will probably see > async i/o at the user level. I think it would make more sense in a > multiprocessor system. If I'm missing something here, I fell sure one > of the reader/contributor types in this newsgroup will let me know. > But please, the use of words like idiot and moron in lieu of calm, > reasoned debate will be piped to the blackhole device. > -- > ============================================== > | Joe Crowe | > | Tandem Computers Inc. | > | Internet Address:jcrowe@mpd.tandem.com | > ============================================== -- Joe, The point of asynchronous IO is not scatter gather, although, in a sense, you could use asynchronous IO to implement a scatter gather scheme. The point of asynchronous event is situations where you have multiple simultaneous activities proceeding. For example, consider a process which has an outstanding terminal IO, a network link to manage, and a real-time device to control. The sequence of event completions (and possible exceptions) on the different devices is unpredictable. On OpenVMS, the best way to implement this is through the $QIO system service, using AST routines to receive control when each particular operation complete (alternatively, one could use DECthreads to implement the same functionality). If you used blocking IO, then you would not notice anything wrond with your network link until the realtime IO or terminal operation completed. Programs which use synchronous (blocking) IO in such situations tend to fall victim to the "Printer out of paper" catastrophe, where the entire system comes to a screaching halt because the console printer ran out of paper. I hope that this explanation has been helpful. If I have been unclear, or if I can be of further assistance, please feel free to contact me via Email or phone. - 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 | +--------------------------------------------------------------------------+