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.

broad cast message in SYS/BIOS

Respected Sir/Madam,

I am trying to block various tasks and want to enable them at the same time, so that these blocked tasks continue to run again as they were created. I want to ask that is there any object in SYS/BIOS which i can use to invoke these blocked tasks at once using a single call? or i have to use a counting semaphore and then use a loop as many times as there are blocked tasks, so that i can use sem_pend() and sem_post() for this purpose. Please suggest me

Thanks in advance.

  • SYS/BIOS currently does not have the mechanism you'd like.

    As you suggest, a single semaphore that all the tasks are blocked on, along with an equal number of calls to SEM_post() might be sufficient for your purpose.

    I believe a binary semaphore or a counting semaphore with initial count of zero could be used.

    Alan

  • Hi Alan,

    Thanks for the reply. Can you tell me the number of tasks that can be reside in the system at the same time? the stack size of each of the task is about 1600 Bytes. and there can be at least 1000 of this tasks occur at the same time. Will it be possible or my system will just hang? Actually i am trying to schedule received Ethernet packets according to some schedule. Is it possible to do this in such manner or should i use something else. Please suggest me. One more thing about previous question, will the blocked tasks will be scheduled after sem_post() as they were blocked or in some random manner?

    Thanks in advance

  • Pankaj,

    BIOS places no limit on the number of tasks.

    Memory constraints and/or performance will probably get in the way with 1000 tasks though.

    Can you just put the ethernet packets into a Queue and service them with a single task?

    If I knew more about what you're trying to do I could give you better advice.

    Alan