Skip to content
Related Articles
Open in App
Not now

Related Articles

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

Improve Article
Save Article
  • Last Updated : 14 Sep, 2018
Improve Article
Save Article

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
Related Articles

Start Your Coding Journey Now!