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

sachindbhujbal wrote on Tuesday, 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
     

davedoors wrote on Tuesday, May 13, 2008:

You can keep adding tasks until you run out of RAM.  There is no maximum.

sachindbhujbal wrote on Tuesday, 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.

saiberion wrote on Tuesday, 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

sachindbhujbal wrote on Tuesday, 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.

rtel wrote on Tuesday, 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.

sachindbhujbal wrote on Wednesday, May 14, 2008:

Dear Richard,
   Thanks for Your reply.