Question: Multithread Real Time Task EKT 424-Lab Assignment 5 Due Date: Next week labsession Learning Outcome: 1. Create multithreads in a single process by means of

 Multithread Real Time Task EKT 424-Lab Assignment 5 Due Date: Next

Multithread Real Time Task EKT 424-Lab Assignment 5 Due Date: Next week labsession Learning Outcome: 1. Create multithreads in a single process by means of PThread library API 2. Implement periodic threads with primitive linux functions like sleep(), ulseep). nanosleep) 3. Implement Real Time Scheduling of PThread threads. In this assignment, we are shifting from multi process to multi threads. By means of the pthread create () and pthread joinOOR pthead detached ) function (if you want to), create 3 different threads. a) The first thread should mimics acquiring a temperature value from the equation below: temperature-LOWER TEMP BOUND int) (UPPER TEMP BOUND rand/RAND MAX 2-0 and return the value to the calling main thread b) The second thread should mimics acquiring a pressure value from the equation below presureLONER PRESURE BOUND +1nt) (UPPER-PRESURE BOUND" rand ()/(RAND MAX+1.0)); and return the value to the calling main thread c) The third thread should receive both of this value and display them to the screen. d) The pressure and temperature value must be sampled at every 3.5 and 4 seconds respectively e The third thread period is also 4 seconds and it should only be executed after both thread 1 and 2 is executed. To achieved this requirement you will need to assign the priority and schedule the threads correctly Multithread Real Time Task EKT 424-Lab Assignment 5 Due Date: Next week labsession Learning Outcome: 1. Create multithreads in a single process by means of PThread library API 2. Implement periodic threads with primitive linux functions like sleep(), ulseep). nanosleep) 3. Implement Real Time Scheduling of PThread threads. In this assignment, we are shifting from multi process to multi threads. By means of the pthread create () and pthread joinOOR pthead detached ) function (if you want to), create 3 different threads. a) The first thread should mimics acquiring a temperature value from the equation below: temperature-LOWER TEMP BOUND int) (UPPER TEMP BOUND rand/RAND MAX 2-0 and return the value to the calling main thread b) The second thread should mimics acquiring a pressure value from the equation below presureLONER PRESURE BOUND +1nt) (UPPER-PRESURE BOUND" rand ()/(RAND MAX+1.0)); and return the value to the calling main thread c) The third thread should receive both of this value and display them to the screen. d) The pressure and temperature value must be sampled at every 3.5 and 4 seconds respectively e The third thread period is also 4 seconds and it should only be executed after both thread 1 and 2 is executed. To achieved this requirement you will need to assign the priority and schedule the threads correctly

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!