Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. The traditional UNIX scheduler enforces an inverse relationship between priority numbers and priorities. The higher the # the lower the priority. The scheduler recalculates

image text in transcribed

4. The traditional UNIX scheduler enforces an inverse relationship between priority numbers and priorities. The higher the # the lower the priority. The scheduler recalculates priorities once every second. The cpu usage of a process is updated (incremented) 60 times a second. The formula for recalculating priority is: (10 points) Priority -base priority + f(recent cpu usage); f(recent cpu usage) is calculated as a weighted value of the processes cumulated cpu usage during the current time periods. Base Priority begins at 60. Initially a process' cpu usage is 0 when it first enters the system. If the process uses the cpu for all of the current time period it's usage (T) would be 60. f(recent cpu usage) is calculated as T/2 this then becomes the value ofT for the process. The process' T value would be 30, and it's priority would be 60 +30 or 90. Should the process execute for the next time period its T would be 30 + 60 -90, and f(recent cpu usage)-45, and the process' priority would be come 60 + 45-105. If a process does not execute during a time period its T value does not increase during the current time slice. Show the order that the following processes would execute, and how their priority changes CPU Time needed in seconds 4 Process special Arrival time considerations Performs No I/O Performs I/O operations that take .5 seconds after every .5 seconds of execution time P1 P2 0 P3 Performs NO I/O 4. The traditional UNIX scheduler enforces an inverse relationship between priority numbers and priorities. The higher the # the lower the priority. The scheduler recalculates priorities once every second. The cpu usage of a process is updated (incremented) 60 times a second. The formula for recalculating priority is: (10 points) Priority -base priority + f(recent cpu usage); f(recent cpu usage) is calculated as a weighted value of the processes cumulated cpu usage during the current time periods. Base Priority begins at 60. Initially a process' cpu usage is 0 when it first enters the system. If the process uses the cpu for all of the current time period it's usage (T) would be 60. f(recent cpu usage) is calculated as T/2 this then becomes the value ofT for the process. The process' T value would be 30, and it's priority would be 60 +30 or 90. Should the process execute for the next time period its T would be 30 + 60 -90, and f(recent cpu usage)-45, and the process' priority would be come 60 + 45-105. If a process does not execute during a time period its T value does not increase during the current time slice. Show the order that the following processes would execute, and how their priority changes CPU Time needed in seconds 4 Process special Arrival time considerations Performs No I/O Performs I/O operations that take .5 seconds after every .5 seconds of execution time P1 P2 0 P3 Performs NO I/O

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions

Question

4. Identify the challenges facing todays organizations

Answered: 1 week ago