Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in the EC and DC subsystems. The soft tasks in the engine control part are related to the adjustment of the throttle valve for improving
in the EC and DC subsystems. The soft tasks in the engine control part are related to
the adjustment of the throttle valve for improving the fuel consumption efficiency.
For the display control part, the utility of soft tasks is a measure of the timeaccuracy
of the displayed data, that is how soon the information on the dashboard is updated.
The parameters of the task set are presented in Table PS
Table PS
a Assign priority for each task based on Rate Monotonic Analysis RMA
marks
b Based on the system design sketch a timeline from time to show the
execution of the above tasks based on time slicing solution using the RMA
scheduling queue with milliseconds time slice based on RMA priority sequence as
identified in Question a Based on your timeline sketch, identified the tasks which
missed their deadline assuming deadline is equal to period.
c If the design in Question b to be executed with milliseconds time slice, does it
solve the problem of the missed task? Sketch the new timeline and discuss.
d Perform a scheduling analysis of the system based on processor utilization analysis
and the RMA priority identified in Question a From the analysis, discuss the
schedulability of the tasks. e From the analysis result in Question d discuss the possibility to add another task with
period milliseconds and execution milliseconds. If not possible, suggest a new
value of period of any task to the five tasks designed, discuss your suggestion.
marks
f The scheduling designed in Question b to e assume there is no shared resources. Let
consider some of the tasks in Table PS sharing a block of memory, where Collision
Avoidance and Display Control make use of a block of shared memory. This block of
memory is protected by a semaphore. Collision Avoidance requires the block of memory
during the last of its execution and Display Control requires the block of memory
during the last of its execution. Sketch a timeline from time to to
show the execution of the four tasks with fixedpriority scheduler RMA.
Sketch timeline diagrams to show the execution of the four tasks given the
initial arrival time of each task is at time In each timeline shows the three
situations: executing, preempted and blocked, when appropriate using the
following legend.
Preempted
Blocked
marks
g In your answer f discuss at which time the priority inversion problem occur. Show
how this priority inversion problem can be solved using priority inheritance.SCSJ
PART B: PROBLEM SOLVING
Marks
Part B consists of one essay questions. Answer all the questions.
Given the following requirements for a Cruise Control with Collision Avoidance CCCA system design that contains the following independent software tasks and answer the following questions.
CCCA is a common and well known automotive driver assistance system. It can automatically assist the driver in maintaining the speed and keeping safe distances to other vehicles in the same lane. It consists of four main atomic control laws, as shown in Figure PS:
i The "steering" law allows the driver of a vehicle to steer in the desired directions.
ii The "throttle" law allows the vehicle to accelerate or maintain a given acceleration through engine control.
iii The "brake" law allows the vehicle to decelerate.
iv The "collision avoidance" law allows the vehicle to do lane change maneuver with a severe braking to avoid collision.
The CCCA is composed of four main subsystems, namely Braking Control BC Engine Control EC Collision Avoidance CA and Display Control DC Each subsystem has one deadline that equals its period. The BC and CA subsystems are specified as hard tasks. For collision avoidance part, to completely avoid rearend collision, severe braking and lane change maneuver is used. Soft tasks are identified
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