Alan Trinidad Padilla Sigala
TASKS: Create two tasks from one function
Similar to the previous example, this application uses two tasks but this time using a function, Tasks now are created to pass a struct as a parameter to control the time delay and
TASKS: Two task same priority with blocked states
Now the tasks are not consuming unnecessary time processor, each task is blocked before execute for a specified time. The tasks is more visible and unsderstanble on time line. Observe that the first
TASKS: Task reuse a function
Time line shows that task3 is executed first and after Task1 and task2, each task uses the same function and therefore has the same delay. The messages are sent at the same time.
Part 1: Task
Each task is a small program on its own right. It has an entry point, will normally run forever within an infinite loop. Task are implemented as C functions. the only about them