Q: using pthreads in fortran i want to use pthreads in my fortran program but i cannot even get it to compile. i have used pthreads in C programs and need it for my fortran program but a call to use f_pthread results in the following error:
Fatal Error: Can't open module file 'f_pthread.mod' for reading at (1): No such file or directory
so quite obviously i don't have f_pthread.mod linking. where is f_pthread.mod and/or how do i go about making it or downloading it? every single thing i have looked up talks about how to use pthreads in fortran, with a 'use f_pthread' at the beginning of the example program, but i cannot seem to figure out how they correctly link that module.

A: I've only ever come across the module f_pthread on IBM/AIX installations.  If you have such an installation then the extensive IBM documentation should point you towards it.  If you don't have, what makes you think you have that module ?  Where does your compiler on your platform (you tell us neither) put module files ?  Have you looked for f_pthread.mod there ?
Why do you 'need' pthreads for your Fortran program ?  It would be much easier to use OpenMP, and there are only a few things that pthreads can do that OpenMP can't and which most Fortran programs are likely to want to do.
