-
Priority Based Scheduler - Priority scheduling involves priority assignment to every process, and processes with higher priorities are carried out first, whereas tasks with equal priorities are carried out on round robin basis.
-
Made 2 files foo.c (Its forking new processes for testing by doing useless calculations) and nice.c (Its used to set priority according to the mentioned pid).
- Round robin allocates time slices to each process in a cyclic manner and stops starvation.
- Priority based scheduling may cause starvation because high priority (low number) processes will given be given preference over low priority (high number) processes.
- With same priority proesses, Round robin scheduler is used.