I'm writing up something that will spawn worker threads as needed, and they will just keep on going until they finish or the app signals a shutdown. I'm thinking a quick and dirty way is to create a static global flag that the worker threads will READ each pass in their loop to determine whether to prematurely terminate or not. The flag will only ever be set once - when the parent process is getting ready to shut down. Do I really need to take the time to lock the global and such when I don't really care if it takes a few extra passes through the thread's loop before it notices the flag was set?