final int maxThreadNum = 5; int dataSize = 1079; int threadDataSize = (dataSize - 1) / maxThreadNum + 1;