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: f6134,47a06d19e281eb8d X-Google-Attributes: gidf6134,public X-Google-Thread: 1164f8,47a06d19e281eb8d X-Google-Attributes: gid1164f8,public X-Google-Thread: 111731,47a06d19e281eb8d X-Google-Attributes: gid111731,public X-Google-ArrivalTime: 1994-03-11 11:01:10 PST Xref: gmd.de comp.org.decus:2931 comp.os.vms:42201 comp.sys.dec:14232 comp.unix.advocacy:1076 Newsgroups: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy Path: gmd.de!newsserver.jvnc.net!yale.edu!yale!gumby!newsxfer.itd.umich.edu!gatech!howland.reston.ans.net!cs.utexas.edu!halley!integrity!zaphod!jcrowe From: jcrowe@zaphodmpd.tandem.com (Joseph Crowe) Subject: Does UNIX do async i/o? Message-ID: <1994Mar11.190110.20289@integrity.uucp> Sender: jcrowe@zaphod (Joseph Crowe) Reply-To: jcrowe@mpd.tandem.com Organization: Tandem Computers Inc. References: <1994Feb26.204059.4068@mixcom.mixcom.com> <11MAR199400234346@hearts.aces.com> <1994Mar11.144337.13745@inmos.co.uk> Date: Fri, 11 Mar 1994 19:01:10 GMT In article <1994Mar11.144337.13745@inmos.co.uk>, hughm@inmos.co.uk (Hugh McIntyre) writes: |> In article <11MAR199400234346@hearts.aces.com>, gavron@hearts.aces.com (Ehud Gavron) writes: |> |> In article , rockwell@nova.umd.edu (Raul Deluth Miller) writes... |> |> #Carl J Lydick: |> |> #.. Unix doesn't have support asynchronous I/O... |> |> # |> |> #Huh? What do you mean? |> |> # |> |> #I can do asynchronous I/O under Unix. |> |> |> |> OH, you must have confused what "asynchronous" means, |> |> because of course there is no asynchronous I/O under |> |> Unix. |> |> Hmm: |> |> SunOS_4.1.3% man aioread |> Reformatting page. Wait... done |> |> AIOREAD(3) C LIBRARY FUNCTIONS AIOREAD(3) |> |> NAME |> aioread, aiowrite - asynchronous I/O operations [man page deleted for brevity] |> While I agree that the some people may be confusing the normal behaviour of |> Unix write (where the data is not actually transferred to disk before the call |> returns) with real asynchronous I/O as supported by some of the VMS system |> services, it's not true to say that you can't do asynchronous I/O under any |> version of Unix. The above stuff was apparently added in SunOS 4.1 - other |> versions of Unix may or may not include the same facility. 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 | ==============================================