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-Thread: f6134,47a06d19e281eb8d X-Google-Attributes: gidf6134,public X-Google-ArrivalTime: 1994-03-16 15:16:20 PST Xref: gmd.de comp.org.decus:3171 comp.os.vms:42775 comp.sys.dec:14499 comp.unix.advocacy:1301 Newsgroups: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy Path: gmd.de!newsserver.jvnc.net!netnews.upenn.edu!dsinc!spool.mu.edu!sol.ctr.columbia.edu!howland.reston.ans.net!cs.utexas.edu!uunet!sarge!sarge!esther From: esther@verdix.com (Esther Lumsdon) Subject: Re: Does UNIX do async i/o? Message-ID: Sender: news@verdix.com Nntp-Posting-Host: avenger.hq.verdix.com Organization: Verdix Corp Date: Wed, 16 Mar 1994 23:16:20 GMT 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> carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick) writes: >In article <1994Mar11.190110.20289@integrity.uucp>, jcrowe@zaphodmpd.tandem.com (Joseph Crowe) writes: >= 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. >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. Spawn a subprocess? no! Use Ada tasking to do your asynchronous I/O for unix. From the Verdix Ada support BBS: Asynchronous IO package example Many customers have indicated that they would like to be able to use IO in multiple tasks without having the program suspend. This is possible on Unix by either polling, or using the Unix async features. This package is an example of using these async features to communicate through sockets in multi-tasking programs. It includes a fairly complete binding to most of the unix calls associated with sockets, as well as a library of higher-level communication routines built on the binding. It also includes a crude example program to demonstrate the functionality. Anything on the Verdix support BBS is free. -- -- Esther Lumsdon, not a tech support engineer, and not speaking for Verdix. esther@verdix.com I wanna be where the sky is Carolina blue!