CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

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 not possible
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
I/O protection is ensured by operating system routine(s)
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
I/O protection is ensured by a hardware trap
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
I/O protection is ensured during system configuration
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B I/O protection is ensured by operating system routine(s)
Memory-mapped I/O requires that memory locations and I/O ports share the same set of addresses, So address bit pattern that is assigned to memory can not also be assigned to an I/O port and vice versa. I/O protection in this approach is ensured by operating systems macros and routines.

flag
Suggest Corrections
thumbs-up
0
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Summary
CIVICS
Watch in App
Join BYJU'S Learning Program
CrossIcon