Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions

Question

7. Discuss the key features of the learning organization.

Answered: 1 week ago