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

  Question about atm networks

ATM networks use a token bucket program to regulate traffic. A new token is put into the bucket every one usec so ATM cells can be sent during this period.

  When using handheld devices it is not the same as on a

when using handheld devices it is not the same as on a computer. describe the similarities and differences in the

  Create for the cpu-intensive portion of the application

How many threads will you create to perform the input and output and how many threads will you create for the CPU-intensive portion of the application?

  Question 1a what is the main advantage of multiprogrammingb

question 1a what is the main advantage of multiprogramming?b how does the distinction between the monitor mode and user

  How does a operating system works

how does a operating system works

  How would you transform the ptp to jsp

Packet Transmission Problem (PTP) and Job Scheduling Problems (JSP) are known NP-complete problems. How would you transform the PTP to JSP

  Creating a c language code

Prepare a c code or Modify code to ask user to input five gpas. then the program computes the average of the gpa and prints it to screen.

  When a process is multithreaded

Explain the differences, advantages, and disadvantages between user and kernel threads. What are the advantages and disadvantages of a lightweight process?

  Developing ipv6

What is the primary reason for developing IPv6

  What is average rotational latency if seek time is given

5 Disk, seek time, latency, sector, request Single-platter disk rotation speed: 7200 rpm number of tracks on one side of platter. What is avg rotational latency?

  Explain unix as a key component for forensic examiners

Write a paper, examining computer forensic issues as they are related to Microsoft Windows and Macintosh environments and explain UNIX as a key component for forensic examiners;

  Question regarding the electronic surveillance

Read the article found on the New York Times titled, "Bush Lets U.S. Spy on Callers Without Courts" found at http://www.nytimes.com/2005/12/16/politics/16program.html?pagewanted=all.

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