Pthreads is the library of POSIX standard functions for concurrent, multithreaded programming. The POSIX standard only defines an application programming interface (API) to the C programming language, not to Fortran. Many scientific and engineering applications are written in Fortran. Also, many of these applications exhibit functional, or task-level, concurrency. They would benefit from multithreading, especially on symmetric multiprocessors (SMP). We summarize here an interface to that part of the Pthreads library that is compatible with standard Fortran. The contribution consists of two primary source files: a Fortran module and a collection of C wrappers to Pthreads functions. The Fortran module defines the data structures, interface and initialization routines used to manage threads. The stability and portability of the Fortran API to Pthreads is demonstrated using common mathematical computations on three different systems. This paper is a shortened and slightly modified version of a complete Algorithm submitted for publication to the journal ACM nuns. Math. Software, during July, 2000. © 2001 by Springer Science+Business Media New York.
CITATION STYLE
Hanson, R. J., Breshears, C. P., & Gabb, H. A. (2001). Using a Fortran interface to POSIX threads. In IFIP Advances in Information and Communication Technology (Vol. 60, pp. 257–271). Springer New York LLC. https://doi.org/10.1007/978-0-387-35407-1_15
Mendeley helps you to discover research relevant for your work.