每个函数都以内核模式结束吗?
我们是否可以说,在编程、在输出上显示某些内容、添加值等时,我们总是与系统交互?我的意思是应用程序中的每个函数是否最终(最终)在内核中。 我不知道这种方法是否因操作系统而异,所以我指的是 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不,将两个值加在一起肯定不会使用任何系统代码。
No, adding two values together will pretty sure not use any system code.
您始终与系统交互,因为 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.
不,例如在 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.