When to use kernel threads vs workqueues in the linux kernel

前端 未结 3 1121
暗喜
暗喜 2020-12-07 09:58

There are many ways to schedule work in the linux kernel: timers, tasklets, work queues, and kernel threads. What are the guidelines for when to use one vs another?

3条回答
  •  Happy的楠姐
    2020-12-07 10:36

    Kernel threads form the basis for Work Queues. They are the only types of kernel helper routines that run within the process context.

提交回复
热议问题