4. System Calls related to Scheduling change the priority get the maximum group priority set the group priority get the scheduling policy set the scheduling policy and priority get the priority set the priority relinquish the processor voluntarily get the minimum priority value get the maximum priority value get the time quantum for Round-Robin set the CPU affinity mask get the CPU affinity mask nice() getpriority() setpriority() sched_getscheduler() sched_setscheduler() sched_getparam() sched_setparam() sched_yield() sched_get_priority_min() sched_get_priority_max() sched_rr_get_interval() sched_setaffinity() sched_getaffinity() description System call
5.
6.
7.
8.
9. Typical Priority Values for a Conventional Process 1199 ms +6 5 ms +19 139 Lowest static priority 999 ms +4 50 ms +10 130 Low static priority 799 ms +2 100 ms 0 120 Default static priority 499 ms - 1 600 ms - 10 110 High static priority 299 ms -3 800 ms -20 100 Highest static priority Sleep time threshold Interactive delta Base time quantum Nice value Static priority Description
10.
11. Average Sleep Time, Bonus Values, and Time Slice Granularity 10 10 1 second 10 9 >= 900 ms but < 1000 ms 20 8 >= 800 ms but < 900 ms 40 7 >= 700 ms but < 800 ms 80 6 >= 600 ms but < 700 ms 160 5 >= 500 ms but < 600 ms 320 4 >= 400 ms but < 500 ms 640 3 >= 300 ms but < 400 ms 1280 2 >= 200 ms but < 300 ms 2560 1 >= 100 ms but < 200 ms 5120 0 >= 0 but < 100 ms Granularity Bonus Average sleep time
12.
13.
14.
15.
16. Two Sets of Runnable Processes in the runqueue Structure