Embedded system project, design a RM/EDF scheduler.