Pthreads/fr: Difference between revisions

Created page with "=Introduction= Le terme ''pthreads'' provient de [https://en.wikipedia.org/wiki/POSIX_Threads POSIX threads], l'une des premières techniques de parallélisation. Tout comme [..."
(Created page with "pthreads")
 
(Created page with "=Introduction= Le terme ''pthreads'' provient de [https://en.wikipedia.org/wiki/POSIX_Threads POSIX threads], l'une des premières techniques de parallélisation. Tout comme [...")
Line 2: Line 2:


=Introduction=
=Introduction=
One of the earliest parallelization techniques was through the use of [https://en.wikipedia.org/wiki/POSIX_Threads POSIX threads], usually shortened to just '''pthreads'''. Like [[OpenMP]], pthreads parallelization relies on the assumption of a shared memory environment and is, therefore, typically used only on a single node with the number of active threads limited by the number of available CPU cores on the node. While pthreads can
Le terme ''pthreads'' provient de [https://en.wikipedia.org/wiki/POSIX_Threads POSIX threads], l'une des premières techniques de parallélisation. Tout comme [[OpenMP]], pthreads s'emploie dans un contexte de mémoire partagée et donc habituellement sur un seul nœud où le nombre de fils d'exécution actifs est limité aux cœurs CPU disponibles. On utilise pthreads dans plusieurs langages de programmation, mais surtout en C. En Fortran, la parallélisation de fils d'exécution se fait préférablement avec OpenMP alors qu'en C++, les outils de la librairie [http://www.boost.org Boost] sont mieux adaptés.
be used with a variety of programming languages, in practice the main target language is C. To parallelize a Fortran program using threads, OpenMP is almost certainly a better idea while C++  
programmers would probably find the constructs in the [http://www.boost.org Boost threading library] to be more valuable.


As one of the earliest forms of parallelization, pthreads have also served as the basis for later approaches to shared memory parallelization like OpenMP and can be thought of as forming a  
As one of the earliest forms of parallelization, pthreads have also served as the basis for later approaches to shared memory parallelization like OpenMP and can be thought of as forming a  
rsnt_translations
56,437

edits