January 15th, 2010, 12:53 PM
Data directly to cpu from input devices
when we type in through keyboard .Does the data first go to physical memory and then cache and then cpu or is there a way wherein data can diretly go to cpu bypassing main memory and cache.Thanks in advance
January 15th, 2010, 03:41 PM
This is handled by terminal interrupts. I vaguely remember the process in Minux and found a good description for you.
Core design principles
when developing software systems.
See my open-source project
as an example of professional code.
The opinions expressed do not represent those of my employer.
January 15th, 2010, 03:44 PM
Depends on the system and CPU involved. Are you talking about a PC? In most cases there's at least two CPU's involved in getting the data from the keyboard to whatever program is the final destination. One little micro and/or ASIC in the keyboard that processes the switch array inputs and converts them to the appropriate signals on whatever kind of interface the keyboard uses to interface with the PC and then of course the main CPU in the PC itself.
From the perspective of an application hosted by an operating system, all inputs pass in via RAM buffers at some level.
I no longer wish to be associated with this site.
January 15th, 2010, 09:16 PM
sn2710: Please DO NOT cross post. This is the 3rd of the same post. It is also being responded to over here.