On the integration of application level and resource level QoS control for real-time applications