Text this: On optimal lateness and tardiness scheduling in real-time systems.