Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The FREERTOS File can be found in this link: http://www.freertos.org/a00104.html For this assignment you are to use FreeRTOS to study multitasking. Return a zip file

image text in transcribed

The FREERTOS File can be found in this link: http://www.freertos.org/a00104.html For this assignment you are to use FreeRTOS to study multitasking. Return a zip file containing The code. Please comment your code and include your name in the source files The results of execution 1. Create the tasks shown in the figure below; give these tasks the same priority. What would you do if you want the final values to be 520 for N and 300 for Res. N = 100; Res = 50; Task10) Task20) Task30) N=N+3"Res ; Res-Res+50; Prinf("The value of N is %d", N); Print("The value of Res is %d", Res); Res-5"Res ; Prinf("The value of N is %d", N); Print( "The value of Res is %d", Res); Prinf("The value of N is %d, N) Print("The value of Res is %d", Res); 2. Assign the priorities 50 (lowest), 100, 150 (highest) to Taskl, Task2, and Task3 respectively. Using semaphores, run these tasks in the following orders a. Task2, Taskl, Task3; b. Taskl, Task2, Task3 3. Create three one-shot software timers. The timeout values are 2s, 3s, and 5s, respectively. Their callback functions are the three task functions in Question #1 without the two printf instructions. Create another auto-reload software timer with a period of 1s. Its callback function prints out the values of N and Res

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

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions

Question

Define Administration?

Answered: 1 week ago

Question

Define Decision making

Answered: 1 week ago

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago