문제

Personally I would presume that User Mode allows the restricted access so nothing could be changed that shouldn't be, hence the Kernel mode.

Although presuming isn't good enough. Does anyone know why or how they provide protection from a user.

도움이 되었습니까?

해결책

The idea of separating user mode from kernel mode is so whatever runs in user mode can't interfere with the rest of the system hence the requirement for lesser privileges. For example, you wouldn't want a user mode application being able to write to another process or the kernel.

The protection is done via hardware. Often, processors have privilege modes, an MMU and access control options. In x86, you have the privilege rings; in ARM, you have user mode vs supervisor mode.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top