Some of the criteria for calculation of priority of a process are : a.…
2017
Some of the criteria for calculation of priority of a process are :
a. Processor utilization by an individual process.
b. Weight assigned to a user or group of users.
c. Processor utilization by a user or group of processes In fair share scheduler, priority is calculated based on :
- A.
only (a) and (b)
- B.
only (a) and (c)
- C.
(a), (b) and (c)
- D.
only (b) and (c)
Attempted by 323 students.
Show answer & explanation
Correct answer: C
Correct answer: (a), (b) and (c)
Explanation: A fair share scheduler computes priorities using all three criteria so it can allocate CPU time proportionally and enforce fairness across processes and users/groups.
Processor utilization by an individual process: this measures each process's actual CPU consumption and helps adjust that process's priority.
Weight assigned to a user or group of users: weights set the relative entitlement or share for users/groups so some can receive more CPU than others.
Processor utilization by a user or group of processes: aggregating usage across all processes of a user/group ensures the scheduler enforces the assigned share at the user/group level, not just per process.
Example: if one user has weight 2 and another has weight 1, the scheduler uses the weights and the measured CPU usage of each user's processes to try to give the first user about twice the CPU time overall.