嵌入式


RTOS

<p><a href="https://os.mbed.com/docs/mbed-os/v5.14/reference/configuration-rtos.html">https://os.mbed.com/docs/mbed-os/v5.14/reference/configuration-rtos.html</a></p> <h4>Thread memory model</h4> <p>所有线程共享全局堆。默认,OS从全局堆动态分配内存给线程的堆栈。用户spawn产生的线程从其他存储空间分配线程栈,全局堆的大小依赖于编译器。 当使用IAR时堆大小是静态的。它对于OS的每个目标都是不同的。你会发现IAR连接器的配置文件嵌入在目标文件夹下。而对于GCC和ARM编译器堆大小是基于RAM使用动态调整的。</p> <h4>默认线程</h4> <p>默认情况下有四个线程在运行: <code>ISR/scheduler</code>线程, <code>idle</code> thread, <code>timer</code> thread and <code>main application</code> thread. the idle thread, timer thread and ISR/scheduler thread 一共消耗 2 kilobytes of RAM. 用户不能调整这个值。你可以扩展或减小主应用线程的栈大小。</p>

页面列表

ITEM_HTML