This is the documentation for the latest (master) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.
CONFIG_MAIN_THREAD_PRIORITY

Priority of initialization/main thread

Type: int

Help

Priority at which the initialization thread runs, including the start of the main() function. main() can then change its priority if desired.

Defaults

Kconfig definition

At kernel/Kconfig:77

Included via Kconfig:8Kconfig.zephyr:30

Menu path: (Top) → General Kernel Options

config MAIN_THREAD_PRIORITY
    int "Priority of initialization/main thread"
    default -2 if !PREEMPT_ENABLED
    default 0
    help
      Priority at which the initialization thread runs, including the start
      of the main() function. main() can then change its priority if desired.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)