Hello All, I have an MPI program for having multiple processes read from a file that contains list of file names and based on the file names read - it reads the corresponding file and counts the frequency of words.
If one of the processes completes this and returns - to block executing MPI_Barrier(), the other processes also hang. On debugging, it could be seen that the *readFile()* function is not entered by the other processes currently in *process_files()*. Unable to figure out why this happens. Please find the code here <http://stackoverflow.com/questions/32413612/as-one-mpi-process-executes-mpi-barrier-other-processes-hang> Any suggestions would be very much helpful! Thank you, Dhanashree