Threaded execution of a map/reduce