Question 3 (1 points): Suppose a mouse controller is connected to the processor via the memory...
Question 3 (1 points): Suppose a mouse controller is connected to the processor via the memory bus. Whenever a mouse button is pressed or released or the mouse is moved, the mouse controller adds an a record of that event to a small buffer it maintains and signals the processor to trigger an interrupt. Suppose a process on this system can make a system call that waits for a mouse click to occur. (That is, the system call only cares about mouse clicks that occur after the system call is started.) To implement this system call, what would be the best choice for the device driver? A. O the device driver should mark the process as not runnable from the system call handler and later, from its interrupt handler mark the process as runnable again B. O the device driver should write the address of the system call's return value into the mouse controller's buffer, then context switch to another process C. the device driver should read the device controller's buffer of events in a loop when it is called from the system call handler until it detects a mouse click in it