Hi, I am student pursuing Electrical and electronics engineering.
Hi, I am student pursuing Electrical and electronics engineering.


SensorData struct, not the address of the value field within the struct.SensorData struct instead:




4/9/24, 7:45 PM
pthread_create()SensorDataSensorDatavaluerc = pthread_create(&sensor_threads[t], NULL, sensor_task, (void *)&sensor_data[t].value);rc = pthread_create(&sensor_threads[t], NULL, sensor_task, (void *)&sensor_data[t]);