OS202 - johanessteven19 - Updated Weekly throughout the semester!
I/O Systems.
An Operating System needs a ‘tool’ for it to communicate with the user. The OS first will have to know what to do. The user will usually give out commands to the system and the result of that command will be communicated back to the user in some form, whether visible or not. For example, if a user wants to open a certain program on a Windows computer, they can simply use the mouse to point the cursor onto the program shortcut, double-click it, and then the program will open. The OS will take this ‘stimulus’ from the mouse being clicked, process it, and the resulting output will be the selected program being opened. Therefore, to make sure that the OS works smoothly, it is important for the OS to manage its I/O devices by making up entire I/O subsystems, each specific to their own operations.
Memory-mapped I/O
This is an alternative way for the machine to communicate with the device. Memory-mapped I/O will first map the address space of the processor into the device, which will then be used during communication (reading/writing of data) between those memory areas and the device. This method is more suitable for devices that must move large amount of data as quickly as possible, such as graphic cards, etc.