Anytime Control Algorithms for Embedded Real-Time Systems