Allow explicit definition of number-of-CPUs in Thread Manager.
Merge pull request #30 from pmar/threading

Allow explicit definition of number-of-CPUs in Thread Manager.