A generalized approach to real-time schedulability analysis