SEAME-pt / Team05_SEA-ME-warm-up

1 stars 0 forks source link

M04_EX01.7: Synchronize the threads #24

Open JoelenCruz opened 1 week ago

JoelenCruz commented 1 week ago

To ensure that the race is fair, you need to synchronize the threads so that they don't move too fast or too slow. You can use Qt's synchronization classes, such as QMutex or QSemaphore, to accomplish this.