Scheduling periodic and aperiodic tasks using the slack stealing algorithm