A periodic task scheduler