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-10 08:42:08 PST Xref: gmd.de comp.org.decus:2848 comp.os.vms:42007 comp.sys.dec:14119 comp.unix.advocacy:993 Path: gmd.de!newsserver.jvnc.net!yale.edu!spool.mu.edu!howland.reston.ans.net!europa.eng.gtefsd.com!mozart.amil.jhu.edu!jhunix.hcf.jhu.edu!grinch.hcf.jhu.edu!doug From: doug@grinch.hcf.jhu.edu (Douglas W. O'Neal) Newsgroups: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy Subject: Re: Is VMS Dying? Date: 10 Mar 1994 16:42:08 GMT Organization: Homewood Academic Computing, Johns Hopkins University Message-ID: <2lnil0INNs2v@jhunix.hcf.jhu.edu> References: <1994Feb28.140951.24948@mc <2lnhda$kc@charm.magnus.acs.ohio-state.edu> NNTP-Posting-Host: grinch.hcf.jhu.edu In article <2lnhda$kc@charm.magnus.acs.ohio-state.edu> JONESD@kcgl1.eng.ohio-state.edu (David Jones) 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. -> ->I strongly doubt it. You can fork a separate process to perform the ->I/O or do Non-blocking I/O but in neither case are you really doing ->asynchronous I/O. To quote from Silicon Graphics' "Pipeline" newsletter: With IRIX 5.1, support for asynchronous I/O was added in accordance with the specification in POSIX 1003.4a Draft 12. With asynchonous I/O, a user can queue read and write requests to a device and optionally receive a queued signal when the request completes. The read or write function call will return when the request is queued, rather than blocking the process. As such, a process can simultaneously queue a number of requests, without waiting for any of them to complete Sounds like $QIO to me. ->In VMS, asynchronous I/O means that an I/O request that is not completed ->immediately is queued (left pending) until the driver can complete the ->request (read,write,etc). In Unix, non-blocking I/O is still synchronous, ->your request always completes (sometimes with EWOULDBLOCK) before the process ->continues. The select() call then provides a hint that your program can ->probably re-try the operation with success. Generic Unix (an oxymoron?) may not support true asynchronous I/O but at least one popular version does. -- Doug O'Neal, Distributed Systems Programmer, Johns Hopkins University doug@jhuvms.bitnet, doug@jhuvms.hcf.jhu.edu, mimsy!aplcen!jhunix!doug