天天看点

【多线程】计算每个线程要处理的数据量

final int maxThreadNum = 5;
int dataSize = 1079;

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

继续阅读