Patent ID: 7680964

Claim:
A method for processing data in a processing unit, the processing unit generating data frames for an output unit by combining data from a plurality of input units having at least two different simultaneous sample rates, wherein the processed data are buffered in an output buffer between the processing unit and the output unit, and wherein the processing unit, the input units and the output unit are threads in a multithreading environment and are executed on a same microprocessor, comprising the steps of: measuring the filling of the output buffer, wherein the measuring results in a value that is equivalent to a filling of the output buffer; calculating from said measured value a timer value, wherein, when the measured value corresponds to a predefined value, then the timer value corresponds to a time that is a common multiple of the reciprocal of the sample rates of the input units; setting a timer with the calculated timer value and starting the timer, wherein the timer sends a notification when the time specified by the timer value is elapsed, the notification referring to the processing unit thread; and activating upon said notification the processing unit thread if it is not already active, or otherwise continuing activation of the processing unit thread.