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: 1164f8,47a06d19e281eb8d X-Google-Attributes: gid1164f8,public X-Google-Thread: 111731,47a06d19e281eb8d X-Google-Attributes: gid111731,public X-Google-ArrivalTime: 1994-03-14 13:11:16 PST Xref: gmd.de comp.os.vms:42481 comp.sys.dec:14395 comp.unix.advocacy:1218 Path: gmd.de!newsserver.jvnc.net!yale.edu!yale!gumby!newsxfer.itd.umich.edu!gatech!howland.reston.ans.net!pipex!demon!bagpuss.demon.co.uk!localhost!karl From: karl@bagpuss.demon.co.uk (Karl Strickland) Newsgroups: comp.os.vms,comp.sys.dec,comp.unix.advocacy Subject: Re: Does UNIX do async i/o? Date: 14 Mar 1994 21:11:16 GMT Distribution: world Message-ID: 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>, <2lt8e4$ia2@genesis.ait.psu.edu> NNTP-Posting-Host: localhost In-reply-to: bjj@ECLD.PSU.EDU's message of 12 Mar 1994 20:24:36 GMT In article <2lt8e4$ia2@genesis.ait.psu.edu> bjj@ECLD.PSU.EDU (Bryan J Jensen) writes: > My suspicion is that I can use signals, and pause till either a > process completes or I/O completes. However, I'm still searching > for a sufficiently complete description of UNIX to find out how. > Linux man pages seem quite inadequate for this, and Sun only somewhat > better. Catch SIGCHLD and do your wait(2). Its hardly fair to flame UN*X just because you dont know what you're doing. > An aside on races, I was amused by the following comment in Linux (tty_io.c): > > * This is so ripe with races that you should *really* not touch this > * unless you know exactly what you are doing. All the changes have to be > * made atomically, or there may be incorrect pointers all over the place. > > Judging by all the bugs in Linux, I'd say the authors should never have > written the code to begin with. Often times, a little forethought can What qualifies you to say that? Have you written something better? > eliminate most possibilities for races, particularly in something like > an operating system where a bit of extra overhead or response delays > are not critical. An understanding of what's going on while coding > can eliminate most of the other race conditions. I suspect the Linux > authors skipped the forethought and have been slow to understand what > they're doing. Maybe they should have contracted you to write the kernel eh? (When you've figured out SIGCHLD that is). > I do agree that VMS system calls are painful, taking away some of the > joy of programming. But then, my first experience was TOPS-10, which > has far more friendly system calls then UNIX. If you think its joyfull not to check return codes, you shouldnt be programming at all. > I think the one thing that hurts most under VMS is that all system calls > return a status code. As a result, programmers feel obligated to test Yawn, all OS's return errors for their system calls - VMS is not special. > for errors. Contrast that with UNIX where errors are rarely checked, > with the resulting frequent core dumps on null pointers. So it's > really just a tradeoff between developement time and reliability. yea yea, never seen an ACCVIO under VMS? You can write bad programs under any OS. > It's also fair to see that VMS provides a higher level interface then > UNIX. RMS' indexed files are a good example of that. Most UNIX's come with libraries for indexed files too. Who needs/wants that shit in the kernel anyway? > I don't think you meant to use the word modularity though - VMS > kernel provided support is the uncontested winner in modularity. > But that's another story. And its changing. -- ------------------------------------------+----------------------------------- Posted using GNUS 4.1 on FreeBSD 1.1-BETA | Karl Strickland PGP 2.3a Public Key Available. | Internet: karl@bagpuss.demon.co.uk "VI. THE SHELL" - BSD PS2:1-9 :-) | or: karl%mvax@bagpuss.demon.co.uk