A method for improving timing behavior of a processing unit in a
multithreading environment is disclosed, wherein the processing unit
generates data frames for an output unit by combining data from a
plurality of input units, and the processed data are buffered in an
output buffer between the processing unit and the output unit. The method
comprises sending from the output unit to the processing unit a value
corresponding to the filling of the output buffer, calculating a timer
value, setting a timer with the timer value, wherein the timer calls the
processing unit thread after the specified time. The timer value depends
on the value corresponding to the averaged filling of the output buffer.
As a result, the average filling of the output buffer is lower compared
to conventional thread management, and thus the system is more flexible
and reacts quicker.