1. Task programming on μC/OS-III.
Use the examples in Chapter 3 of the μC/OS-III Users Guide to create three periodic tasks.
Assign different priority values to the tasks.
Task 1 (highest priority) simulates processing of geo-location data. It generates random
(x,y) coordinates and uses the Euclidean distance and period to calculate velocity as the
output.
Task 2 (medium priority) simulates data processing for a thermometer sensor. It generates
random temperature readings and calculates the average, maximum and minimum
temperatures as outputs.
Task 3 (lowest priority) simulates a traffic monitoring system. Each time a random value
representing vehicle count is generated. Task 3 calculates the accumulated vehicle number
(output) and clears the number for every 20 readings.
a.) Create the three periodic tasks. They generate random sensor readings in memory.
Simulate their execution and measure the average response time of each task. Also record the
arrival times of jobs of the three tasks and check if there is any pattern.
b.) Task 1 reads random (x,y) coordinates from a file, while Task 2 and Task 3 still generate
random sensor readings in memory. Simulate their execution and measure the average response
time of each task. Compare the results from a.) and b.) .
liks related to software required for it are below :
μC/OS-III RTOS: [login to view URL]
For emulations on Windows Visual Studio, download code at [login to view URL]
μC/OS licensing information: [login to view URL]