Turn based synchronization between threads
- by Amarus
I'm trying to find a way to synchronize multiple threads having the following conditions:
* There are two types of threads:
1. A single "cyclic" thread executing an infinite loop to do cyclic calculations
2. Multiple short-lived threads not started by the main thread
* The cyclic thread has a sleep duration between each cycle/loop iteration…