Setting number of threads using OpenMP

We can set either in the code or through environment variable. If we use environtment variable, we simply type

$ setenv OMP_NUM_THREADS 6

where 6 is the number of cpus we want to use.


Programming C/C++ using Eclipse with the use of CDT

I am developing C/C++ codes in Linux, and luckily Eclipse has a plugin called CDT to be used for C/C++ language. To install Eclipse and CDT plugin in Kubuntu/Ubuntu, just type:
sudo apt-get install eclipse eclipse-cdt