什么是内核线程? [英] What is a Kernel thread?
本文介绍了什么是内核线程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只是开始设备驱动程序的编码和新线程,通过许多文件了用于获取有关线程的想法。我还是有些怀疑。
- 什么是内核线程?
- 从用户线程?
的区别
- 什么是两个线程之间的关系?
- 如何实现内核线程?
- 我在哪里可以看到执行的输出?
块引用>谁能帮我?
谢谢。解决方案一个内核线程仅在内核模式下运行的核心任务;它通常没有被
叉()
或的clone()
系统调用创建。一个例子是kworker
或kswapd
。您可能不应该执行的内核线程,如果你不知道它们是什么。
谷歌提供有关内核线程,例如很多页弗雷的页面
i am just started coding of device driver and new to threading, went through many documents for getting an idea about threads. i still have some doubts.
- what is a kernel thread ?.
- how it differs from user thread ?.
- what is the relationship between the two threads ?.
- how can i implement kernel threads ?.
- where can i see the output of the implementation?.
Can anyone help me ?. thanks.
解决方案A kernel thread is a kernel task running only in kernel mode; it usually has not been created by
fork()
orclone()
system calls. An example iskworker
orkswapd
.You probably should not implement kernel threads if you don't know what they are.
Google gives many pages about kernel threads, e.g. Frey's page.
这篇关于什么是内核线程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文