System Resources
RTX kernel tasks are identified by their Task Control Block (TCB). This is a dynamically allocated block of memory where all task control and status variables are located. TCB is allocated at runtime when the task is created with the os_tsk_create or os_tsk_create_user function call.

The size of the TCB memory pool is defined in the RTX_Config.c configuration file, and it depends on the number of concurrent running tasks. This is not necessarily the number of defined tasks since multiple instances of a task are supported by the RTX kernel.
The RTX kernel also allocates the task its own stack. The stack is allocated at runtime after the TCB has been allocated. The pointer to the stack memory block is then written into the TCB.
