Create a simulator for scheduling a given set of processes in user space only. The simulator...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a simulator for scheduling a given set of processes in user space only. The simulator should read fróm a configuration file a set of parameters for each process: Length of time for which process will execute, priority of the process and the preferred scheduling policy - FIFO or Round Robin, the time at which the process executes and if it is a CPU intensive process or an 1'O intensive process. Apart from this read the quantum of time given to each process and the number of priority levels for scheduling the process. Now simulate a scheduling algorithm which uses FIFO/Round Robin with priority based scheduling. At the end of the run print the following quantities for each process: a. Number of times the process was scheduled. b. A timeline for the process containing the state transitions - Ready, waiting, Running and Terminated and the timestamp for each transition. c. Time taken to complete the process. d. Number of times the process waited for I/0. e. The priority of the process and preferred scheduling algorithm. After printing the above values print the average time of completion for each process. 2. From the calculated parameters determine which scheduling algorithm was better for CPU intensive and IO intensive processes. Suggest ways in which the scheduling algorithm can be improved and why? 3. We have two classes of systems for which we want to create an operating system - the first class is a server meant to be used as a database and another is a desktop system meant to be used by a home user. Suggest the different approaches you would take to schedule the processes on types of system and why? Change the simulator above to calculate of your scheduling policies and comment on the results obtained. Create a simulator for scheduling a given set of processes in user space only. The simulator should read fróm a configuration file a set of parameters for each process: Length of time for which process will execute, priority of the process and the preferred scheduling policy - FIFO or Round Robin, the time at which the process executes and if it is a CPU intensive process or an 1'O intensive process. Apart from this read the quantum of time given to each process and the number of priority levels for scheduling the process. Now simulate a scheduling algorithm which uses FIFO/Round Robin with priority based scheduling. At the end of the run print the following quantities for each process: a. Number of times the process was scheduled. b. A timeline for the process containing the state transitions - Ready, waiting, Running and Terminated and the timestamp for each transition. c. Time taken to complete the process. d. Number of times the process waited for I/0. e. The priority of the process and preferred scheduling algorithm. After printing the above values print the average time of completion for each process. 2. From the calculated parameters determine which scheduling algorithm was better for CPU intensive and IO intensive processes. Suggest ways in which the scheduling algorithm can be improved and why? 3. We have two classes of systems for which we want to create an operating system - the first class is a server meant to be used as a database and another is a desktop system meant to be used by a home user. Suggest the different approaches you would take to schedule the processes on types of system and why? Change the simulator above to calculate of your scheduling policies and comment on the results obtained.
Expert Answer:
Answer rating: 100% (QA)
Create a simulator for scheduling a given set of processes in user space with LinSched LinSched is a Linux scheduler simulator that resides in user space It isolates the Linux scheduler subsystem and ... View the full answer
Related Book For
Operating Systems Internals and Design Principles
ISBN: 978-0133805918
8th edition
Authors: William Stallings
Posted Date:
Students also viewed these programming questions
-
A CPU scheduling algorithm determines an order for the execution of its scheduled processes. Given n processes to be scheduled on one processor, how many possible different schedules are there? Give...
-
User ahmed owns a directory, stuff, containing a text file called ourstuff.txt that he shares with users belonging to the group staff. Those users may read and change this file, but not delete it....
-
Given the letters in the word Z O M B I E S in how many ways can two of the letters be arranged such that one is a vowel and one is a consonant?
-
Ballard Ltd makes three products A, B and C. Each passes throughtwo departments: Machining and Assembly. Budgeted production ineach department by each productUnitsMachiningAssemblyPr 2 answers
-
Find the point on the x-axis that equidistant from (3, 1) and (6, 4).
-
The adjusted trial balance for Phoebe Company is presented in E4.8. Instructions a. Prepare an income statement and an owners equity statement for the year. Phoebe did not make any capital...
-
Discuss the sampling strategy and technique to be used. Develop a hypothetical research scenario that would necessitate the use of the Action Research Approach and a Posttest With a Historical...
-
a. Using the AIRPORT KLX Table, describe an example that illustrates the insertion anomaly. b. Using the AIRPORT KLX Table, describe an example that illustrates the deletion anomaly. c. Using the...
-
What is the Federal Budget? Explain the process used by the government to create the budget. How does this process differ from the process described by your interviewee who you interviewed in week...
-
Coffee Blending and Sales Hill-O-Beans Coffee Company blends four component beans into three final blends of coffee: one is sold to luxury hotels, another to restaurants, and the third to...
-
Describe the role of service guarantees from the marketing and the operations perspective.
-
list 6 examples of forms that are used in a manual control system . list 6 examples of stock items in the the industry . list 4 methods you can use to identify slow moving stock items.
-
"Financial Intelligence" gave examples of firms that had: 1) profit (positive net income) without cash (negative cash flow from operations) and 2) cash (positive cash flow from operations) without...
-
Can credit cards be issued to consumers who have been irresponsible with credit?
-
What are the three primary controls used in protecting corporate assets?
-
For the past several years, an audit client has bought company vehicles and depreciated them over a 10-year period. In the current year, the company determined that a more realistic estimated life...
-
What are the molecular mechanisms underlying DNA damage signaling and cell cycle checkpoints, and how do they coordinate cellular responses to genotoxic stress to prevent the propagation of mutations?
-
What is the order p of a B + -tree? Describe the structure of both internal and leaf nodes of a B + -tree.
-
Providing additional bandwidth for virtualization servers initially involved additional network interface cards (NICs) for more network connections. With the advent of increasingly greater network...
-
What elements are typically found in a page table entry? Briefly define each element.
-
In the VAX, user page tables are located at virtual addresses in the system space. What is the advantage of having user page tables in virtual rather than main memory? What is the disadvantage?
-
The role of state governments in providing public primary and secondary education varies greatly. In one case, the state government operates the school system; in a number of others, the state...
-
The education grant simulation case showed that a program of matching grants was not effective in equalizing per pupil spending because demand was relatively inelastic. What other means might be used...
-
Congestion is a common problem on roads and other transportation systems. Carefully explain what an economist means by congestion and why it is an economic problem.What type of user charge can solve...
Study smarter with the SolutionInn App