Quality RTOS & Embedded Software

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




Loading

What are the max. no. of priorities & tasks ?

Posted by Sachin Bhujbal on May 13, 2008
Dear All,
Can anybody tell me what is the max no. of priorities in FreeRTOs ? According to FreeRTOSConfig.h its max value is upto 0xFFFF FFFF(i.e. 4 bytes ).
What is the max. no. of tasks possible in FreeRTOs ?
Please help me in this topic.
Thanks in advance


RE: What are the max. no. of priorities & tasks ?

Posted by Dave on May 13, 2008
You can keep adding tasks until you run out of RAM. There is no maximum.

RE: What are the max. no. of priorities & tasks ?

Posted by Sachin Bhujbal on May 13, 2008
Dear Davedoors,
Thanks for Your reply about tasks. But what about max no. of priorities in FreeRTOs ?
Is it as big as a unsigned long ?
Please reply,
Thanks.


RE: What are the max. no. of priorities & tas

Posted by saiberion on May 13, 2008
The maximum number of priorities can be defined with configMAX_PRIORITIES in FreeRTOSConfig.h

But I don't think it's usefull to use more than 5 priorities. And as far as I know: the more priorities the longer the switching time

RE: What are the max. no. of priorities & tasks ?

Posted by Sachin Bhujbal on May 13, 2008
Saiberian,
Thanks for reply.
I know that but what is max value which we can configure there ?
One more thing that I didn't get any defination tskIDLE_PRIORITY in source code. Can You tell where it is defined or what is it ?
Thanks.


RE: What are the max. no. of priorities & tasks ?

Posted by Richard on May 13, 2008
I think its an odd question - I don't see why its useful - but the actually answer is the maximum value a variable of type portBASE_TYPE can hold. So if portBASE_TYPE is 32bit, this would be 0xffffffff.

tskIDLE_PRIORITY is 0, the tsk on the front tells you its defined in task.h. I'm sure this information is on the WEB site.

Regards.

RE: What are the max. no. of priorities & tasks ?

Posted by Sachin Bhujbal on May 14, 2008
Dear Richard,
Thanks for Your reply.


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




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

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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