Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

How many threads I can create.

Posted by psilva on April 29, 2009
Hi.

My application has aproximately 8 thread and it is running ok, but if I put the 9th thread it hangs.

Has freertos a variable to configure the total threads that I can create?

Best regards.


Paulo

RE: How many threads I can create.

Posted by Samuel Tardieu on April 29, 2009
Do you have enough RAM to hold all the threads stacks? Have you checked xTaskCreate return value?

RE: How many threads I can create.

Posted by Dave on April 29, 2009
> Has freertos a variable to configure the total threads that I
> can create?

No you can continue to create tasks until you run out of heap RAM. Which memory file are you using? Heap_1 and heap_2 are sized using configTOTAL_HEAP_SIZE in FreeRTOSConfig.h.

RE: How many threads I can create.

Posted by psilva on April 29, 2009
I am using heap_2, and all of you are right, I decreased the amount of stack to the new thread and it was created without a problem. So my problem is not enough memory.

Thak you all.

Paulo




[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner