World's most popular travel blog for travel bloggers.

[Solved]: Hardware interrupts from keystrokes

, , No Comments
Problem Detail: 

If there is an interrupt from every keypress (or one for keydown, one for keyup, one for keypress?) how does the OS handle so many interrupts at the same time. A person typing at 120WPM would be sending more than 500 interrupts per minute. How does a process ever finish if there is a context switch for the CPU to handle the interrupt 500 times per minute.

I must be missing something here?

Asked By : HotMilo23

Answered By : jsj

A modern computer is designed to handle many more interrupts than you could possibly generate with your keyboard.

You should expect interrupts to range upward from 1,000 per second for computers running Windows 2000 Server

See this link.

Best Answer from StackOverflow

Question Source : http://cs.stackexchange.com/questions/11300

0 comments:

Post a Comment

Let us know your responses and feedback