Histograms and multithreaded programs

I found some bugs in the files posted above, so please find a corrected version here
histogramwrappers.tar.gz (1.95 KB)