Broadcom Interview Question

Implement a scheduling algorithm for an embedded system.