I read several sources about the correct methods of message bubbling from a thread to all other threads in order to complete the grace (each thread performs its own exit procedure). Of these, I liked the idea of a global atomic boolean that can be tagged from any thread, and all other threads check this flag to perform the exit procedure - when all threads are connected, the main thread can then exit the application.
Net computing threads are likely to be handled differently, right?
Is it effective and safe? Is there a better way to do this?
Thanks!
c ++ multithreading parallel-processing exit
oneminute
source share