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.

Block high priority task :

Hi,

Two tasks

Task 1 with high priority

Task 2 with low priority

Task2 is in between exectution of critical section to receiving or transmission of data.

1) Now how to block Task 1 (High priority task) during exection of Task 2 in critical section?

2)Can you mention the API which can be included before and after execution of critical section?

 

 

Regards,

Bindu

  • Hi Bindu,

    One way you can do this is to disable the Task scheduler before your critical section and then re-enable it after.  This is done using the Task_disable() and Task_restor() APIs.  You can also use gates.

    Please refer to the BIOS User's Guide for details.  In particular, see chapter 4 Synchronization Modules and section 4.3.1.3 GateTask.

    Steve