[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bsdi-users
Subject:    Re: kernel threads
From:       seebs () bsdi ! com (Peter Seebach)
Date:       2000-01-31 17:19:16
[Download RAW message or body]


In message <nospam-949316693.36572@bambi.gba.oz.au>, Greg Black writes:
>Sounds like a programming exercise: see if you can write "head"
>in C and make it measurably slower than this shell script
>without using sleep() or busy loops.  Of course, you'd have to
>specify "no cheating" (i.e., writing it in C++ instead of C).

That actually sounds like fun.  Of course, it's utterly trivial to get it
wrong:
	while (read(0, &char, 1) == 1)
will underperform pretty much *anything* using stdio to read lines.

-s

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic