Segmentation Fault Error in Concurrent Sensor Data Processing Simulation: What's the Issue?
My code is supposed to simulate a system where multiple sensors collect data concurrently and process them. But I get this
Segmentation fault (core dumped) error thrown in my console as the code crashes. Please what am I doing wrong ?

Solution
Seems like your does not receive the correct argument, which should be the address of the
This part of your code :
Change it to pass the address of the
SensorData struct, not the address of the value field within the struct.This part of your code :
Change it to pass the address of the
SensorData struct instead: