It depends, if you found some magic way to start the worker threads instantly, then any method is fine I'm just not aware of such a trick, neither on Windows nor OS X. As I see it, we cannot rely on any thread to do anything at all within a given time interval (except for the main thread).mystran wrote: ↑Mon Nov 08, 2021 12:44 pm Oh.. I've always let the main thread do nothing except block on the semaphore from the moment it dispatches the worker threads to the moment the workers are all finished. I have no idea what Blue Cat is talking about with the whole "need to use main thread" thing. Maybe I'm missing something.
Richard