Threading

Thread stack size - Threading

Constant Size Notes
1024 bytes Software timers run with a 1 Kbyte stack
OS_THREAD_STACK_SIZE_DEFAULT 3072 bytes Default if parameter is omitted
OS_THREAD_STACK_SIZE_DEFAULT_HIGH 4096 bytes
OS_THREAD_STACK_SIZE_DEFAULT_NETWORK 6144 bytes The application loop thread is 6 Kbytes

Because of the limited size of the RAM (particularly on Gen 3 and earlier), and a lack of virtual memory, stack sizes are very small compared to desktop operating system applications and Java.