Several examples of commands used to compile code that uses pthreads are listed in the table below.
| Compiler / Platform | Compiler Command | Description | 
|---|---|---|
| INTEL Linux  | icc -pthread | C | 
| icpc -pthread | C++ | |
| PGI Linux  | pgcc -lpthread | C | 
| pgCC -lpthread | C++ | |
| GNU Linux, Blue Gene  | gcc -pthread | GNU C | 
| g++ -pthread | GNU C++ | |
| IBM  Blue Gene  | bgxlc_r / bgcc_r | C (ANSI / non-ANSI) | 
| bgxlC_r, bgxlc++_r | C++ |