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?

  1. A. 58 more failures and about 9.7 CPU-hours
  2. B. 48 more failures and about 2.4 CPU-hours
  3. C. 48 more failures and about 9.7 CPU-hours
  4. 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.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic