threads working for given # of threads, with proper # of items