Write to file - Multithread (OpenMP)

Hello forum,

I have 6 files that are going to be written to from 6 separate threads. How do I do this ?

omp_set_num_threads(6);

#pragma omp parallel shared
{
// Each thread saves to 1 file

}

Help thanks.
Topic archived. No new replies allowed.