Optimal Period Selection of a Real-Time Task Set