HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /A processor receives 800 interrupts each second from its devices…
HardComputer ScienceHigh School (9–10)Computer Science › Software, Languages and TranslatorsNumericalIGCSE

A processor receives 800 interrupts each second from its devices…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

A processor receives 800800800 interrupts each second from its devices. Each interrupt service routine takes 303030 microseconds (μs\mu\text{s}μs) to run.

  1. How much time each second does the processor spend in interrupt service routines, in microseconds?
  1. What percentage of each second is this?
  1. Why must an interrupt service routine be short?

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

Need a reminder? The key ideaShowHide

The processor checks for interrupts at the end of each fetch-decode-execute cycle. If an interrupt has a higher priority than the task, it saves the state of the task (the register contents). It runs the interrupt service routine (ISR) for that interrupt, then restores the state and carries on. The highest priority interrupt is serviced first.

The worked solution

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Step 1. Time in the routines. 800×30=24 000 μs800 \times 30 = 24\,000\ \mu\text{s}800×30=24000 μs.

Step 2. As a percentage. 24 0001 000 000×100=2.4%\dfrac{24\,000}{1\,000\,000} \times 100 = 2.4\%100000024000​×100=2.4%.

Step 3. Why short. While a routine runs, the task is paused. Many interrupts arrive each second, so long routines would leave little time for the task, and the computer would feel slow.

Answer: (a) 24 000 μs24\,000\ \mu\text{s}24000 μs. (b) 2.4%2.4\%2.4%. (c) So the paused task gets most of the processor's time.

Check. 2.4%2.4\%2.4% of a second is 0.0240.0240.024 s, and 0.024×1 000 000=24 000 μs0.024 \times 1\,000\,000 = 24\,000\ \mu\text{s}0.024×1000000=24000 μs.

Log in to save this for later
← All Problems
← A user presses a key while a program is running…A processor is running a spreadsheet. At the end of a fetch-decode-execute cycle, three interrupts… →
More onComputer Science › Software, Languages and Translators

Discussion (0)

Log in to join the discussion.

Loading…

More on this topic

  1. A programmer uses the identifier TotalPrice, which has 10 letters, 25 times in a program…Medium
  2. Name the function of an IDE in each case…Easy
  3. In a model with made-up times, a program takes 3 s each time it is run with an interpreter…Hard
  4. A programmer uses an interpreter while she writes a game…Medium
  5. A program has eight lines. Line 5 has a missing comma and line 7 has a missing bracket, so neither…Medium
All problems on this topic →