I have a shared boolean array of size equal to number of threads. All threads will take a copy of the corresponding element of the array based on index. All threads except one