Search code examples
multithreadingunixkernelstartup

Functions that create first thread in Unix


What is the name of the function that calls two functions of the same name but with different parameters to create the first two kernel threads?


Solution

  • I assume you're talking about the Linux kernel. In that case you are probably referring to rest_init() which calls kernel_thread() two times to create the kernel_init and kthreadd threads.