Cyclic work block distribution policy
You can enable cyclic work block distribution by setting the attributes ALF_TASK_ATTR_WB_CYCLIC and
ALF_TASK_ATTR_SCHED_FIXED when you create the
task. These attributes enable the work blocks to be assigned in a round robin
order to a fixed number of task instances.
You must provide the number of task instances in the alf_task_create
The work blocks are assigned to the task instances in a cyclical manner in
the order of the work blocks being enqueued through calling the function alf_wb_enqueue
. Figure 1
shows an example of cyclic
work block distribution.
Figure 1. Cyclic
work block distribution