Simulate Linux Completely Fair Scheduler (CFS) using POSIX Threads.
$ make
$ ./cfs-simNote:
- The process status table is shown at the beginning when a process is finished.
- Press Cltr + C if you want to stop
A set of 20 processes are specified in file processes.txt.
You can add or modify processes by editing this file
The load balancer are triggered every 2 seconds.
You can change that by changing the macro BALANCER_INTERVAL.
When there is no more process to execute, the balancer will stop the
simulator by setting running to 0.
You can slow down the printing by adjusting the macro SLEEP_TIME.
linux-cfs-sim is released under the MIT License. Use of this source code is
governed by a MIT-style license that can be found in the LICENSE file.