Pseudo code description of the fair share thread scheduler

Assignment Help Operating System
Reference no: EM13912521

The goal of a fair-share thread scheduler is to ensure that all users get an equal share of the machine's processing rime. This means that all of a user's processes will share that user's portion of the CPU time and not infringe on another user's time. For example, under a completely even sharing scheduler, suppose that there are two users logged into a system, each running one process. User I's process will get scheduled 50% of the time, and User 2's process will get scheduled the other 50% of the time. If User 2 starts another process, User l's process will continue to get scheduled 50% of the time, but each of User 2's processes will nm 25% of the time. Use man sched_setscheduler to learn about the kernel scheduling policies.

Modify the source code of the Linux kernel to implement the described fair scheduler and construct an example to demonstrate that the scheduling is indeed fair. Use the Linux kernel version that we have provided in the user's home directory in your VM ((home/user). In addition, add a new system call to the kernel that tells the scheduler that the process calling it is to receive twice as much time, within the user's allotted time slot For example, a user nms three processes, A, B, and C. If the system call is not invoked, each process will receive approximately 33.3% of the user's processing time. If process A invokes the call, it will receive 50% of the tine, with B and C each receiving 25%.

You will be doing all your development and experiments within the virtual machine images. You will be modifying several kernel files to implement the scheduler and the system call, and will be running your virtual machine with the new kernel image. To grade your homework, we will directly be testing your implementation by logging into your virtual machine. Keep in mind that your virtual machines must.

Obtain kernel some .de MR your modification. We will be compiling the kernel ourselves during the evaluation. On Sakai. you will submitting the following two deliverables.

1. A mall containing all modification to the kernel files that you changed for the homework.

Please note that we require you to submit only the modified files. If you do not touch a file please do not upload it on Sakai. We will verify that the kernel source codes in the virtual machines are identical to the ones that you submitted on Sakai. Please keep any directory structure intact inside you tarball to make it easier to see where in the kernel your modified files go.

2. A PDF report describing (1) a pseudo code description of the fair share thread scheduler, (2) a list (2) of modification that you made to kernel. and (3) a description of your experiments to test the fair-share thread scheduler. Once we read your report, we should have a clear understanding of how you went about solving the problem.

Reference no: EM13912521

Questions Cloud

Layered curriculum : What is Differentiated Instruction-What can be Differentiated-What is a Layered Curriculum
Which plan would you recommend valley accept : Begin accepting credit cards. Valley believes this will create new credit sales of 23% of current cash sales. Increased expenses would include 5.5% of net credit sales-related credit card fees and 0.5% of net credit sales for increased record keep..
Prepare an analysis of cash receipts from sales : In addition to the information presented in Mini Exercise 14.1, the selling price for each unit is $18. Based on past experience,
Find the value of h : A square lamina has a side of length l. If an isosceles triangle is removed such that its base lies on one side of the square and its height is h. If the remaining portion is suspended from its apex p of the cut will remain in equilibrium in any p..
Pseudo code description of the fair share thread scheduler : Description of your experiments to test the fair-share thread scheduler. Once we read your report, we should have a clear understanding of how you went about solving the problem.
What is the current receivables balance : The Holland sofa company sells on terms of 3/10, net 30. Gross sales for the year are $1.2 million and the collection department estimates that 30 percent of customers pay on the 10th day and take discounts; 40 percent pay on the 30th day; and the..
Recommendations for diagnostic decision making for adhd : the American Academy of Pediatrics Guideline Recommendations for diagnostic decision making for ADHD
Prepare a cash budget for abc company for august : In addition to the information presented in Mini-Exercise 14.4, ABC Company has a cash balance of $25,000 on August 1 and requires a minimum ending cash balance of $20,000.
Net income : Triple J's net income for the year ended December 31, 2012 was $278,000. It also had stock warrants issued on September 30, 2012, that could be converted into 24,000 shares of common stock, beginning in 2015.

Reviews

Write a Review

Operating System Questions & Answers

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd