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 kernel/Kconfig:12

Included via Kconfig:8Kconfig.zephyr:33

Menu path: (Top) → General Kernel Options

config MULTITHREADING
    bool "Multi-threading"
    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.)