[SOLVED] PEAP Lab 10- A closed two tasks embedded systems

30.00 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (1 vote)

A simple single core embedded system executes continuously two tasks: task A, and task B. Both alternates between a running and waiting state, characterized by the following average duration:

Task A B
Waiting 10 s. 5 s.
Execution 8 s. 12 s.

Note that since the system is single core, when both tasks are in execution, they each runs at half of its speed (the corresponding rate is halved). Considering all waiting and execution times exponentially distributed, and the system starts in a state where both tasks are running:

• The utilization and average number of tasks in execution • The system throughput
• The average number of jobs at t = 10s, t = 20 s., t = 50 s. and t = 100 s.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.