Response-time analysis and overload management in real-time systems