CS FundamentalsVery hardProduct company interview · GATE level
Under Musa's basic execution-time model, failure intensity falls linearly with failures experienced: λ(μ) = λ0 (1 - μ/ν0), and over execution time λ(τ) = λ0 e^(-λ0 τ / ν0). A program has λ0 = 20 failures per CPU-hour and ν0 = 120 total expected failures, and 60 failures have been experienced so far. How many more failures must be found, and how much more execution time is needed, to reach a failure intensity of 2 failures per CPU-hour?
- A. 58 more failures and about 9.7 CPU-hours
- B. 48 more failures and about 2.4 CPU-hours
- C. 48 more failures and about 9.7 CPU-hours
- D. 40 more failures and about 4.8 CPU-hours
Correct answer: C. 48 more failures and about 9.7 CPU-hours
Present intensity: λP = 20 x (1 - 60/120) = 10. From the linear law, Δμ = (ν0/λ0)(λP - λF) = (120/20) x (10 - 2) = 48 failures. From the exponential law, Δτ = (ν0/λ0) ln(λP/λF) = 6 x ln 5 = 6 x 1.609 = 9.66 CPU-hours. Dividing 48 failures by the present intensity of 20 gives 2.4 hours, which ignores the fact that intensity keeps dropping as failures are fixed; 58 forgets that 60 have already been found.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- Defects injected: 40 during requirements, 60 during design and 100 during coding. A requirements review removes 50% of the defects present…
- A class has fields a, b, c, d, e and methods m1 (uses a, b), m2 (uses b, c), m3 (uses d) and m4 (uses d, e). Using the Chidamber-Kemerer…
- main has commits A-B-C-D-E (E is main's tip). feature was created at C and got commits F and G; then main was merged into feature…
- A service runs on 3 identical servers, each 95% available and failing independently; it works when at least 2 of the 3 are up (a majority…
- A system needs all three of its components to work. Their failure times are exponential with MTTFs of 2,000, 5,000 and 10,000 hours. What…
- Two inspectors review the same document independently. Inspector 1 finds 30 defects, inspector 2 finds 24, and 12 defects are found by…