A multi-thread solution for massive operation.