Re: On OS reliability
- From: John Larkin <jjlarkin@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 26 Aug 2008 12:47:43 -0700
On Tue, 26 Aug 2008 11:07:24 -0700, "Joel Koltner"
<zapwireDASHgroups@xxxxxxxxx> wrote:
"John Larkin" <jjlarkin@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1rd8b45n595k5ommqpkimanads8cvl3tkg@xxxxxxxxxx
Possibly, but such "bugs" aren't bugs if nobody triggers them.
That's grammatical sleight-of-hand, but I take your point; we definitely agree
on the major problem.
One of my temperature controllers has the capability to destroy a $40K
probe inside a superconductive magnet. And that started happening one
day. Great consternation around the world.
My fix was to add a hidden blackbox recorder that saves the last 1200
serial-input characters, from the system console, in battery-backed
RAM. Sure enough, the C++ program in the console was occasionally
telling me to go to 400C, which I dutifully did. You can indeed write
spaghetti code in C++.
I know two superb programmers who do everything fast and right.
Neither has ever studied programming.
Programming is a field where I suspect there's far less correlation between
formal training and quality/productivity than most other fields. I took a
handful of CS classes in college, and they were useful -- I hadn't previously
encountered stuff like sparse matrices, fancy hashing/sorting algorithm,
balanced trees, etc... not to meniton some good consideration of numerical
algorithms for solving differential equations, integrating, etc., although in
practice few people implement those when robust library routines are available
to do so. But I was already a better programmer coming out of high school
than some people I know with 4 year CS degrees today, which is a sad
commentary on CS degrees (since I'm certainly not any sort of genius).
20 Hz pushbutton service (state machine run rate) seems about right,
with no explicit debouncing required. That would keep up with your 5
Hz push rate. Only lunatics interrupt on pushbutton hits.
Agreed 100% -- simpler and more reliable to just sample than to try to get
fancy with edge interrupts.
20Hz does seem fine. I normally sample push buttons at 60Hz, but it's because
I often already need a 60Hz interrupt around anyway to do something else.
Some of the non-snappy membrane switches can bounce for 10's of
milliseconds, so might see a double-hit if sampled too fast. Snap
switches rarely bounce for more than a few milliseconds.
John
.
- References:
- Re: On OS reliability
- From: Jan Panteltje
- Re: On OS reliability
- From: Jeff Liebermann
- Re: On OS reliability
- From: John Larkin
- Re: On OS reliability
- From: Jeff Liebermann
- Re: On OS reliability
- From: Joel Koltner
- Re: On OS reliability
- Prev by Date: Re: On OS reliability
- Next by Date: Re: OT Windmills on skyscrapers.
- Previous by thread: Re: On OS reliability
- Next by thread: Re: On OS reliability
- Index(es):
Relevant Pages
|