How to? Synchronizing two threads

In the EV3 programming environment, it is possible to start multiple threads. For example, you want two motors to run simultaneously and when both motors are finished, you want to play a sound. But there is no default mechanism in the programming environment to continue with the main thread when the second has also finished. InĀ  the example below, the “Ready” sound is played too early if motor A finishes before motor B is finished.

Continue reading

Advertisements