How to Use Multiple CPUs on a Node with Little Effort

There are two ways to convert scalar Fortran code to vise multiple CPUs on SMP nodes. One is to use Directives and the other is to use Pthreads. I discuss both these methods with simple examples.