How to read every four lines of .gz file in parallel with OpenMP?
问题 test.fa.gz file contains multiple 4 lines as blow: @HWI-ST298:420:B08APABXX:3:1101:1244:2212 1:N:0:TCATTC GGCAAGGCACTTACTTTACAGCTAAAGAAGTGCAGC + @@@FDFFDFHCFDACGHC<<CCFEHHFCCFCEE:C? What I want to do is to read every four lines of *.fq.gz file in parallel with OpenMP. The code blow could be compiled successfully, but will show incorrect results sometimes. In each for loop, I used 4 times of getline() to read the file. I'm not sure how OpenMP will handle the multiple jobs in each for loop and