UGC-NET | UGC NET CS 2018 July – II | Question 54

Normally user programs are prevented from handling I/O directly by I/O instructions in them. For CPUs having explicit I/O instructions, such I/O protection is ensured by having the I/O instructions privileged. In a CPU with memory mapped I/O, there is no explicit I/O instruction. Which one of the following is true for a CPU with memory mapped I/O ?
(A) I/O protection is ensured by operating system routines.
(B) I/O protection is ensured by a hardware trap.
(C) I/O protection is ensured during system configuration.
(D) I/O protection is not possible.


Answer: (A)

Explanation: Memory mapped I/O means, accessing I/O via general memory access as opposed to specialized IO instructions.
The programmer can directly access any memory location directly. To prevent such an access, the OS (kernel) will divide the address space into kernel space and user space. An user application can easily access user application. To access kernel space, we need system calls (traps).
So, option (A) is correct.


Quiz of this Question



My Personal Notes arrow_drop_up


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.