Adaptive real-time scheduling for legacy multimedia applications