Proportional-Share-Network-Scheduler is a project mainly written in C++ and C, it's free.
A simple concurreny network scheduler
This project is a Network Scheduler that implements concepts of multithreaded programming and synchronization through locks and condition variables.
The methods that were primarily written were signalNextDeadline and waitMyTurn in MaxNWScheduler and STFQNWScheduler.