Added "-A" option to set affinity for threads to individual CPUs.  The cpuset of the process is
queried and threads are assigned round-robin to the available cpus.
Merge branch 'affinity'