1. Data processing system, comprising: at least two processing units each for executing a plurality of tasks; and an interrupt handling unit for receiving an interrupt to be processed by the data processing system and for distributing the interrupt to one of the at least two processing units, wherein the processing unit to which the interrupt is distributed stops current execution of the task and processes the interrupt, wherein the interrupt handling unit is adapted to determine whether the processing units are executing a critical section of the task, wherein the interrupt handling unit distributes the interrupt to one of the processing units which is not executing a critical section of the task.