每个函数都以内核模式结束吗?

发布于 2024-10-02 16:50:52 字数 135 浏览 0 评论 0原文

我们是否可以说,在编程、在输出上显示某些内容、添加值等时,我们总是与系统交互?我的意思是应用程序中的每个函数是否最终(最终)在内核中。 我不知道这种方法是否因操作系统而异,所以我指的是 Windows。

感谢您的回复,我对我的英语感到抱歉。

Can we say that while programming, showing something on output, adding values etc., we always interact with system? I mean whether every function in app ends up(finally) in kernel.
I don't know if this approach varies from OS to OS so I mean Windows.

I appreciate Your response, and I am sorry for my English.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

半夏半凉 2024-10-09 16:50:52

不,将两个值加在一起肯定不会使用任何系统代码。

No, adding two values together will pretty sure not use any system code.

属性 2024-10-09 16:50:52

您始终与系统交互,因为 CPU(或 GPU 等其他处理器)必须执行您的代码。

不过,并非 CPU 执行的每条指令都会涉及内核模式操作。

You always interact with the system in that the CPU (or some other processor like a GPU) has to execute your code.

Not every instruction executed by the CPU will involve a kernel-mode operation, though.

故人的歌 2024-10-09 16:50:52

不,例如在 Windows 中,所有消息传递和 COM 对象都不会以内核模式结束,但它们可能会使用一些内核模式资源,例如句柄。

No, for example in Windows all messaging and COM objects don't end in Kernel-mode but they may use some kernel-mode resources like HANDLEs.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文