Sun Studio 12: C User's Guide

2.13.3 OMP_NUM_THREADS

Set the number of threads to use during execution.