Topics in monitoring and planning for embedded real-time systems