Documente Academic
Documente Profesional
Documente Cultură
Computer Reliability
Chapter Overview
Introduction
Data-entry or data-retrieval errors
Software and billing errors
Notable software system failures
Therac-25
Computer simulations
Software engineering
Software warranties
1-2
1-2
7.1 Introduction
Computer systems are sometimes unreliable
Erroneous information in databases
Misinterpretation of database information
Malfunction of embedded systems
1-3
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-3
1-4
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-4
Disfranchised Voters
1-5
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-5
False Arrests
Sheila Jackson Stossier mistaken for Shirley
Jackson
Arrested and spent five days in detention
1-6
1-7
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-7
1-8
1-9
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-9
1-10
1-11
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-11
1-12
1-13
1-14
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-14
1-15
Conclusion
Rule has more harms than benefits
Amazon.com did the right thing
1-16
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-16
Kantian Analysis
Buyers knew 97.5% markdown was an
error
They attempted to take advantage of
Amazon.coms stockholders
They were not acting in good faith
Buyers did something wrong
1-17
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-17
1-18
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-18
Patriot Missile
Designed as anti-aircraft missile
Used in 1991 Gulf War to intercept Scud missiles
One battery failed to shoot at Scud that killed 28
soldiers
Designed to operate only a few hours at a time
Kept in operation > 100 hours
Tiny truncation errors added up
Clock error of 0.3433 seconds tracking error of
687 meters
1-19
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-19
From Marshall, Science, 255:1347 (1992). Illustration: D.Defrancesco. Copyright 1992 AAAS.
Reprinted with permission from AAAS.
1-20
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-20
Ariane 5
Satellite launch vehicle
40 seconds into maiden flight, rocket self-destructed
$500 million of uninsured satellites lost
1-21
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-21
Cause
Single line of code in error-recovery procedure
Most switches running same software
Crashes propagated through switching network
1-22
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-22
1-23
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-23
1-24
Results
Added conventional baggage system
16-month delay in opening airport
Cost Denver $1 million a day
1-25
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-25
1-26
1-27
1-28
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-28
1-29
7.5 Therac-25
1-30
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-30
1-31
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-31
1-32
Software Errors
Race condition: order in which two or more
concurrent tasks access a shared variable
can affect programs behavior
Two race conditions in Therac-25 software
Command screen editing
Movement of electron beam gun
1-33
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-33
1-34
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-34
1-35
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-35
Post Mortem
1-36
1-37
1-38
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-38
Uses of Simulations
Simulations replace physical experiments
Experiment too expensive or time-consuming
Experiment unethical
Experiment impossible
1-39
Courtesy of NASA
1-40
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-40
Validating Simulations
Verification: Does program correctly implement
model?
Validation: Does the model accurately represent
the real system?
Validation methods
Make prediction, wait to see if it comes true
Predict the present from old data
Test credibility with experts and decision makers
1-41
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-41
Courtesy of Daimler-Chrysler
1-42
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-42
1-43
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-43
1-44
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-44
Specification
1-45
Development
Create high-level design
Discover and resolve mistakes, omissions
in specification
CASE tools to support design process
Object-oriented systems have advantages
After detailed design, actual programs
written
Result: working software system
1-46
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-46
Validation (Testing)
Ensure software satisfies specification
Ensure software meets users needs
Challenges to testing software
Noncontinuous responses to changes in input
Exhaustive testing impossible
Testing reveals bugs, but cannot prove none exist
1-47
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-47
Situation in 2006
1/6 projects cancelled
1/2 projects had time and/or cost overruns
1/3 projects completed on time / on budget
1-48
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-48
1-49
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-49
1-50
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-50
Shrinkwrap Warranties
Some say you accept software as is
Some offer 90-day replacement or moneyback guarantee
None accept liability for harm caused by
use of software
1-51
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-51
1-52
Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-52
1-53