一个最简单的多线程并发demo:
主函数:
public class multithreadReq {
private static final int THREADNUM = 5;//线程数量
public static void main(String[] args) {
//线程数量
int threadmax = THREADNUM;
for(int i = 0; i < threadmax; i++)
{
ThreadMode thread = new ThreadMode();
thre