:orphan: .. title:: CONFIG_MAIN_THREAD_PRIORITY .. kconfig:: CONFIG_MAIN_THREAD_PRIORITY CONFIG_MAIN_THREAD_PRIORITY ########################### *Priority of initialization/main thread* Type: ``int`` Help ==== .. code-block:: none Priority at which the initialization thread runs, including the start of the main() function. main() can then change its priority if desired. Defaults ======== - -2 if !\ :kconfig:`PREEMPT_ENABLED ` - 0 Kconfig definition ================== At ``/Kconfig:69`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:40`` Menu path: (Top) → General Kernel Options .. code-block:: kconfig 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.)*