Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with cs.stackexchange
scroll top