(ii) An RTOS is expected to manage the following tasks in descending order of priority: Task Priority Execution Time Period A 1 15 milliseconds 80 milliseconds B 2 35 milliseconds One-Shot C 3 20 milliseconds One-Shot Scheduling is done using a pre-emptive priority algorithm with a time slice of 10 milliseconds. All three tasks are readied at time t = 0. Switching takes place only at the end of a time slice. (a) Plot a graph showing the resulting system run-time behavior over the first 160 milliseconds of operation. (b) Repeat this for task A having a period of 60 milliseconds. (c) Repeat (b) when task B is re-readied at t = 90 milliseconds. Comment on your results.
Added by Isaac E.
Close
Step 1
To plot the graph, we need to consider the execution of each task at each time slice. At t = 0, all three tasks are readied. Task A has the highest priority, so it will be executed first. Task A has an execution time of 15 milliseconds, so it will run for the Show more…
Show all steps
Your feedback will help us improve your experience
Robert Fox and 88 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Akash M.
Five batch jobs, A through E, arrive at a computer center at almost the same time. They have estimated running times of 10, 6, 2, 4, and 8 minutes. Their (externally determined) priorities are 3, 5, 2, 1, and 4, respectively, with 5 being the highest priority. For each of the following scheduling algorithms, determine the average process waiting time. Ignore process switching overhead. a. Round robin b. Priority scheduling c. First-come, first-served (run in order 10, 6, 2, 4, 8) d. Shortest job first For (a), assume that the system is multiprogrammed, and that each job gets its fair share of the CPU with a quantum of 4. For (b) through (d), assume that only one job at a time runs until it finishes. All jobs are completely CPU bound.
Madhur L.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD