1. A method for scheduling a processing entity task in a multiple-processing entity system, the method comprising: initializing a scheduler; the method is being characterized by receiving a task data structure indicative that a pre-requisite to an execution of task to be executed by a processing entity is a completion of a peripheral task that is executed by a peripheral; wherein the peripheral updates a peripheral task completion indicator once the peripheral task is completed; wherein the peripheral task completion indicator is accessible by the scheduler; and scheduling by the scheduler, the task in response to the peripheral task completion indicator.