And what code are you using to test this? Multithreading is possible with the Galileo but is difficult to know exactly the amount of microseconds of delay it takes for one action to execute after the other. I guess this delay won’t be too much to actually see a slow response from the robot
Take a look at this link for some information C++ Multithreading
I'm trying to find the time difference betwen starting of two different actions(which is in microseconds), based on which i'll calculate the distance then command my robot to do some event, how can i do it in galileo?
following comes into my mind:
- Cilk+ (if you use the Intel compiler)
You may as well consider using 2 processes rather than 2 threads (and communicating via shared memory e.g.)
i've been told that multithreading doesnt exactly execute the different functions simlutaneously,
how should it on an in order CPU with only 1 core?