Thanks. I understand that threads won't help (and will likely slow) clock time on a single processor, but that they are useful for I/O. The question is about cpu time.
Theoretically, in this toy example, the cpu should spend roughly the same amount of time within each thread (no?), no matter how many threads are running.
I'm wondering if there is a way to measure the cpu time within each thread.
Thanks again.