Broadcom interview question

Implement a scheduling algorithm for an embedded system.