Skip to content

Commit ad3a775

Browse files
author
Amanda Butler
authored
Update Thread.md
Add helpful tips from discussion in another repository (internal ticket IOTDOCS-1220).
1 parent 3309ab4 commit ad3a775

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/api/rtos/Thread.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ The Thread class allows defining, creating and controlling parallel tasks.
1010

1111
All the internal thread data structures are part of the C++ class, but by default, the thread stack is allocated on the heap. Memory is allocated at the run time during the call to `start` method. If you don't want to use dynamic memory, you can provide your own static memory using the constructor parameters.
1212

13+
The main thread stack size is specified as `rtos.main-thread-stack-size` in the configuration .json file. That defines the main thread for `mbed_rtos_start` in `mbed_rtos_rtx.c`.
14+
1315
The default stack size is 4K. However, the application can override it by using the configuration system and setting the `THREAD_STACK_SIZE` option to the required size in `mbed_app.json`. For details, please see the [configuration documentation](../../reference/configuration/configuration.md).
1416

1517
## Thread class reference

0 commit comments

Comments
 (0)