Add system call to determine the number of processors.

This allows us to dynamically determine the number of threads to spin
off, and make optimal use of the cores available.