This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

max number of tasks

Hi

I've run across an issue with sys/bios 6.33.05.46. It seems like there is a limit of 32 dynamically created tasks. When I create a 33:rd task, i get a valid task ptr, but the scheduling is corrupted.

Is this a known limitation of sys/bios, or can I configure this somehow?

BR

Niklas

  • Hi,

    I don't know it it's the cause, but you can have only 32 priority levels for Tasks in SYS/BIOS. I think that you can have more than 32 Tasks, but some Tasks must have teh same priority level.

    Regards

  • Hi Niklas,

    There is theoretically no limit on the number of tasks you can create. It is only limited by the amount of memory you have (Each task has an associated instance object and stack that uses up memory). Like Johannes mentioned there is a limit on the number of unique priorities that you can use. Depending on the target this limit is either 16 or 32. By default the number of priorities is 16 for all targets (It is configurable).

    How do you determine that the scheduling is corrupted ? Also, do you have asserts disabled ? If yes, please enable them for debugging.

    Best,
    Ashish

  • Niklas,

    I had one more question. What target are you building for ?

    Best,

    Ashish