1. Data processing system, comprising: at least one processing unit for an interleaved processing of multiple tasks; a cache associated to the at least one processing unit for caching data for multiple tasks to be processed by the at least one processing unit; said cache comprising a plurality of cache lines; a task scheduler for scheduling multiple tasks to be processed in an interleaved manner by the at least one processing unit, wherein each of the cache lines is associated to one of the multiple tasks; and 13 a cache controller for selecting those cache lines in the cache to be evicted based on the task scheduling of the task scheduler.