CONFIG_MULTITHREADING

Multi-threading

Type: bool

Help

If disabled, only the main thread is available, so a main() function
must be provided. Interrupts are available. Kernel objects will most
probably not behave as expected, especially with regards to pending,
since the main thread cannot pend, it being the only thread in the
system.

Many drivers and subsystems will not work with this option
set to 'n'; disable only when you REALLY know what you are
doing.

Default

  • y

Symbols that select this symbol

Kconfig definition

At <Zephyr>/kernel/Kconfig:12

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:40

Menu path: (Top) → General Kernel Options

config MULTITHREADING
    bool "Multi-threading" if ARCH_HAS_SINGLE_THREAD_SUPPORT
    default y
    help
      If disabled, only the main thread is available, so a main() function
      must be provided. Interrupts are available. Kernel objects will most
      probably not behave as expected, especially with regards to pending,
      since the main thread cannot pend, it being the only thread in the
      system.

      Many drivers and subsystems will not work with this option
      set to 'n'; disable only when you REALLY know what you are
      doing.

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