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

  Discuss the different dynamic storage allocation algorithms

Prepare a presentation where you discuss the different dynamic storage allocation algorithms, First-fit, Best-fit, and Worst-fit. Include the pros and cons of each algorithm?

  Explain the role of ram and clock speed

Describe the role of each of the following in determining the speed of a personal computer, RAM, Clock speed, Data on hard disk

  Write bash shell script for number files in directories

Write a bash shell script filestatic. The script should examine the number files in directories given as arguments (parameters) to this script.

  Compare the allocation of t1 bandwidth when using ppp

Compare the allocation of T1 bandwidth when using PPP and Frame Relay as the layer 2 protocols. Discuss the impact of the differences on WAN structure and cost

  Discussion on operating systems

In recent computer trend sources, it has been discussed that the OS are likely to become more user friendly, voice driven, stable, and even will repair themselves when required.

  An important task for modern operating systems

An important task for modern operating systems is the ability to communicate and work with other systems. You will discuss your thoughts on the need for network operating systems in this Discussion Board. Provide your thoughts on the following que..

  Estimate the cost of any additional components

Estimate the cost of any additional components and supplies needed to build the computer and calculate its total cost

  Describe pulse code modulation phase shift modulation

1. describe pulse code modulation phase shift modulation amplitude modulation and frequency modulation. indicate how

  Identify a trend that could influence the development

Identify a trend that could influence the development of future operating systems

  Importance of maintaining security on a lan

Discuss what roles do firewalls and proxy servers play in network security? Determine the importance of maintaining security on a LAN?

  Assume a gpu architecture that contains 10 simd

Assume a GPU architecture that contains 10 SIMD processors. Each SIMD instruction has a width of 32 and each SIMD processor contains 8 lanes for single-precision arithmetic and load/store instructions, meaning that each non- diverged SIMD instruct..

  Define the term context switch

Define the term context switch. Explain how context switching takes place. (use a diagram, with two processes)

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