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-15 08:42:28 PST Xref: gmd.de comp.os.vms:42658 comp.sys.dec:14461 comp.unix.advocacy:1268 Path: gmd.de!newsserver.jvnc.net!yale.edu!yale!gumby!wupost!cs.utexas.edu!convex!news.tcu.edu!seas.smu.edu!mic!montagar!davidc Newsgroups: comp.os.vms,comp.sys.dec,comp.unix.advocacy Subject: Re: Does UNIX do async i/o? Message-ID: <1994Mar15.114228.18827@avatar.montagar.com> From: davidc@avatar.montagar.com (David L. Cathey) Date: 15 Mar 94 11:42:28 CDT References: <1994Feb26.204059.4068@mixcom.mixcom.com> Distribution: world Organization: Montagar Software Concepts, Plano TX In article , karl@bagpuss.demon.co.uk (Karl Strickland) writes: > In article <2lt8e4$ia2@genesis.ait.psu.edu> bjj@ECLD.PSU.EDU (Bryan J Jensen) writes: >> 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? Seems to me that if it's full of bugs, it could have been written better. Perhaps a better design of interfaces could have been done to reduce the impact of race conditions. Whether or not he could write something better does not discredit that Linux is full of bugs and possibly should have been written by someone else. However, since Linux is free, you get what you pay for so why bitch about it here. >> 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. Good point... >> 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. True! However, I've found that it's even easier to write them in C compared to other languages with stronger typing, bounds checking, etc (at least as far as hidden ACCVIO's just waiting to be discovered). >> 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? Me? Actually, RMS is not strictly part of the kernel. The code shares system address space, but is executed in executive mode as part of the process. Having it there isvery handy, since you can change file attributes, process attributes, and even system attributes to improve file I/O performance characteristics of the application without code changes. Also, another program can access the indexed file without requiring re-coding, since those RMS access routines are used as a common interface (much like stdio). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - David L. Cathey |INET: davidc@montagar.lonestar.org Montagar Software Concepts |UUCP: ...!montagar!davidc P. O. Box 260772, Plano TX 75026-0772 |Fone: (214)-618-2117 NOTE: Due to circumstances beyond my control, please use the lonestar.org address until further notice.