《Windows Internal》(2)
2012-03-21 21:12 Oliver_Zhao 阅读(275) 评论(0) 编辑 收藏 举报System Architecture
Operating System Mode
In most multiuser operating systems, applications are separated from the operating system itself-the operating system kernel code runs in a privileged processor mode, with access to system data and to the hardware; application code runs in a nonprivileged processor mode, with a limited set of interfaces available, limited access to system data, and no direct access to hardware. When a user-mode program call a system service, the processor traps the call and then switches the calling thread to kernel mode. When the system service completes, the operating system switch the thread context back to user mode and allows the caller to continue.
First notice the line dividing the user-mnode and kernel-mode parts of the Windows operating system. The boxes above the line represent user-mode processes, and the components below the line are kernel-mode operating system services.
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步