0

What is the default scheduling policy of a Linux kernel thread? Are all the policies like SCHED_NORMAL, SCHED_RR, SCHED_FIFO applicable for the kernel threads as well?

0andriy
  • 4,183
  • 1
  • 24
  • 37
Franc
  • 319
  • 9
  • 28

1 Answers1

2

kthread sets default policy to SCHED_NORMAL. See https://elixir.bootlin.com/linux/v5.18/source/kernel/kthread.c#L357 All task structs have a policy field, including kthreads.

stark
  • 12,615
  • 3
  • 33
  • 50