Skip to content

Commit 9080c48

Browse files
author
Amanda Butler
authored
Move content in Thread.md
Move content and format it as a note, as requested in comments.
1 parent ad3a775 commit 9080c48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/rtos/Thread.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ 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-
1513
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).
1614

15+
<span class="notes">**Note:** 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`.</span>
16+
1717
## Thread class reference
1818

1919
[![View code](https://www.mbed.com/embed/?type=library)](https://os.mbed.com/docs/development/mbed-os-api-doxy/classrtos_1_1_thread.html)

0 commit comments

Comments
 (0)