Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q2 (a) Discuss how implementation of interrupts can aid in achieving multi-tasking in sequential programming. Support your discussion by relating to time-triggered and event-triggered tasks.
Q2 (a) Discuss how implementation of interrupts can aid in achieving multi-tasking in sequential programming. Support your discussion by relating to time-triggered and event-triggered tasks. (5 marks) (b) The control system for an embedded system has 4 concurrent tasks running on a single microcontroller as given in Table Q2(b). Task 1 and 3 are hard real time, while Task 2 and 4 are soft real time. Task 1 2 3 4 Period (ms) 80 30 50 40 Table Q2(b) CPU resources (ms) 10 10 2 10 Deadline (ms) 80 (hard) 35 (soft) 50 (hard) 45 (soft) (i) (ii) Construct an appropriate priority assignment for each of the 4 tasks according to the rate monotonic scheduling (RMS) algorithm. (4 marks) Assess the ability of each task to meet its deadline based on the worst-case completion time of RMS calculation. (11 marks) Q2 (a) Discuss how implementation of interrupts can aid in achieving multi-tasking in sequential programming. Support your discussion by relating to time-triggered and event-triggered tasks. (5 marks) (b) The control system for an embedded system has 4 concurrent tasks running on a single microcontroller as given in Table Q2(b). Task 1 and 3 are hard real time, while Task 2 and 4 are soft real time. Task 1 2 3 4 Period (ms) 80 30 50 40 Table Q2(b) CPU resources (ms) 10 10 2 10 Deadline (ms) 80 (hard) 35 (soft) 50 (hard) 45 (soft) (i) (ii) Construct an appropriate priority assignment for each of the 4 tasks according to the rate monotonic scheduling (RMS) algorithm. (4 marks) Assess the ability of each task to meet its deadline based on the worst-case completion time of RMS calculation. (11 marks)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started