I created two test programs: one which starts and stops tons of threads,
with each thread doing just a little bit of work. I verified that the
thread descriptors were created and deleted correctly.
A second program runs just a few threads for a long time. It appears that
sampling is being correctly gathered for these threads.