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-13 03:22:43 PST Xref: gmd.de comp.os.vms:42360 comp.sys.dec:14316 comp.unix.advocacy:1151 Path: gmd.de!newsserver.jvnc.net!yale.edu!yale!gumby!newsxfer.itd.umich.edu!sol.ctr.columbia.edu!howland.reston.ans.net!EU.net!sun4nl!fwi.uva.nl!casper From: casper@fwi.uva.nl (Casper H.S. Dik) Newsgroups: comp.os.vms,comp.sys.dec,comp.unix.advocacy Subject: Re: Does UNIX do async i/o? Date: 13 Mar 1994 11:22:43 GMT Organization: FWI, University of Amsterdam Distribution: world Message-ID: <2lut23$b1h@mail.fwi.uva.nl> 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: adam.fwi.uva.nl rockwell@nova.umd.edu (Raul Deluth Miller) writes: >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. There's a big difference between threads with kernel support and threads exclusively in user mode. User mode threads will not be running on different processors, will block if one thread gets a page fault, will block while one does I/O, etc. >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. That isn't true for disk I/O. For asynch disk I/O you need kernel threads or kernel asynch I/O. Modern Unixes have one or both of kernel threads or asynch I/O. Casper