# the maximum of tasks running in FreeRTOS

**URL:** <https://forums.freertos.org/t/the-maximum-of-tasks-running-in-freertos/1671>\
**Category:** Kernel\
**Created:** [June 9, 2012, 12:32pm UTC](https://forums.freertos.org/t/the-maximum-of-tasks-running-in-freertos/1671 "2012-06-09T12:32:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 9, 2012, 12:32pm UTC](https://forums.freertos.org/t/the-maximum-of-tasks-running-in-freertos/1671/1 "2012-06-09T12:32:58Z")

</div>

**[vicui](https://sourceforge.net/u/vicui/)** wrote on [Saturday, June 09, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/4b6b346b/#db18):

HI ;

Who know that the maximum of task running in FreeRTOS ? is it depend on the configTOTAL\_HEAP\_SIZE value ?  
the task stack value defined in vTaskCreate functions is allocated from FreeRTOS heap or system stack or system heap ?

vincent

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 9, 2012, 1:48pm UTC](https://forums.freertos.org/t/the-maximum-of-tasks-running-in-freertos/1671/2 "2012-06-09T13:48:01Z")

</div>

**[kpettit1](https://sourceforge.net/u/kpettit1/)** wrote on [Saturday, June 09, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/4b6b346b/#d936):

Hi Vincent,

The task control block (TCB) and the task’s stack space are both allocated from the FreeRTOS heap as defined by configTOTAL\_HEAP\_SIZE (and the specific heapX.c file included in the build).&nbsp; There is nothing in FreeRTOS that limits the number of created tasks except the available FreeRTOS heap space.

Ken

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [June 9, 2012, 6:20pm UTC](https://forums.freertos.org/t/the-maximum-of-tasks-running-in-freertos/1671/3 "2012-06-09T18:20:41Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Saturday, June 09, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/4b6b346b/#41b1):

In addition to Ken’s helpful answer, I posted some links in your other thread.

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 10, 2012, 12:13am UTC](https://forums.freertos.org/t/the-maximum-of-tasks-running-in-freertos/1671/4 "2012-06-10T00:13:52Z")

</div>

**[vicui](https://sourceforge.net/u/vicui/)** wrote on [Sunday, June 10, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/4b6b346b/#a6ce):

Hi ken and rechardbarry:

that’s really useful .

thank you very much !

Vincent
