All mock tests are FREE till 31 December — register to save your progress

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 ?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: A. I/O protection is ensured by operating system routines.

Explanation

With memory-mapped I/O, protection comes from the OS mapping I/O addresses out of user address spaces (memory protection set up by OS routines).

More System Software and Operating System questions