FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [April 2009 Threads] 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
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|