My C++ program pseudo code looks like:
#omp pragma parallel
for (i=1...100000)
write input files into a file called "$i.txt", $i is the value of i
then do ./outside_program $i.txt and reads its inputs and do other stuff
Assume ./outside_program is thread safe. Is using openmp to write to different files in C++ thread safe?