什么是内核线程? [英] What is a Kernel thread?

查看:223
本文介绍了什么是内核线程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是开始设备驱动程序的编码和新线程,通过许多文件了用于获取有关线程的想法。我还是有些怀疑。


  

      
  1. 什么是内核线程?

  2.   
  3. 从用户线程?
  4. 的区别
      
  5. 什么是两个线程之间的关系?

  6.   
  7. 如何实现内核线程?

  8.   
  9. 我在哪里可以看到执行的输出?

  10.   

谁能帮我?
谢谢。


解决方案

一个内核线程仅在内核模式下运行的核心任务;它通常没有被叉()的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.

  1. what is a kernel thread ?.
  2. how it differs from user thread ?.
  3. what is the relationship between the two threads ?.
  4. how can i implement kernel threads ?.
  5. 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() or clone() system calls. An example is kworker or kswapd.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆