Hi, How the keyboard input is correctly handed over to the process(when more than one are waiting for keyboard input) by the kernel.
Suppose there are more than one process waiting for keyboard input. How kernel decides which keyboard input is to which process. Please elaborate it from the keyboard interrupt handler to the handing over of data to the processes. My thoughts: 1. keyboard interrupt occurs in a process context(at that point the process could be running in user mode/kernel mode). 2. That particular process context is saved and the keyboard interrupt handler is called. 3. keyboard interrupt handler might be copying the input data to some buffers in memory. 4. Wake up all the processes waiting for the keyboard interrupt to happen. 5. Now the interrupted process will continue from where it was interrupted. 6. Here comes my Question? How come kernel decides that particular input is intended to a particular process but not any other process. Thanks in advance. Regards, Neelakantan K. -- -- Mailing list guidelines and other related articles: http://lug-iitd.org/Footer --- You received this message because you are subscribed to the Google Groups "Linux User Group @ IIT Delhi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
