Source: https://people.coins-lab.org/ocheikhrouhou/enseignement/systeme-exploitation/SE1_TD3_Ordonnancement de processus_2012_correction.pdf