1. The Linux scheduler went through a major overhaul between the 2.4 and 2.6 kernel. The current scheduler can make scheduling decisions in O(i) time. Explain why is this so? 2. In Linux, the data and...

1 answer below »

1. The Linux scheduler went through a major overhaul between the 2.4 and 2.6 kernel. The current scheduler can make scheduling decisions in O(i) time. Explain why is this so?


2. In Linux, the data and stack segments are paged and swapped to a scratch copy kept on a special paging disk or partition, but the text segment uses the executable binary file instead. Why?


Answered 106 days AfterNov 16, 2021

Answer To: 1. The Linux scheduler went through a major overhaul between the 2.4 and 2.6 kernel. The current...

Nithin answered on Feb 15 2022
123 Votes
1. The 2.4 kernel introduced to us a simple scheduler that operated in O(N) time (as it iterated over every task during a scheduling event). The 2.4 scheduler divided time into epochs, and within each epoch, every task was allowed to execute up to its time slice. If a task did not use all of its time slice, then half of the remaining time slice was added to the new time slice to allow it to execute longer in the next epoch. The scheduler would simply iterate over the tasks, applying a goodness function, a metric to determine which task to execute next.
Although this approach was relatively simple, there were lots of disadvantages added to it. This scheduler despite being simple lacked the...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here