A robust mechanism for adaptive scheduling of multimedia applications