multithreading - Use threads on a RESTful Web Service in Java -
everyone. have problem restful web service, have client in php call restful service in java. in restful service have post method, executes update query modify rows in table 10000 records . want use threads this. possible that?. please me i'm kind of new in java. thanks. ok i'm doing in service layer: for(int = 0; < 10; i++) { startrow = i*1000; finalrow = i*1000 + 1000; runnable process = new processrecords(startrow , finalrow); executor.execute(process); } // wait until threads finish while (!executor.isterminated()) { } system.out.println("\n threads finished"); and i'm calling class (processrecords) execute update: public processrecords (int start, int final) { startrow = start; finalrow = final; } @override public void run(){ try { consultuniversity consult = new consultuniversity (); consult.averangegrade(startrow, finalrow); } catch (exception ex) { logger.ge...