Clean up some debug statements and add optional support for pinning the processes to a processor.

The latter greatly enhances performance stability on hyperthreaded machines.