摘要:
昨天同事在写一个多线程代码的时候,出现了共享对象被修改的问题。for(int i=1; i<=pageNo; i++){ searchDO.setPageSize(PER_PAGE); searchDO.setPageNo(i); Callable<List<String>> callable = new SearchThreadMethod("thread_"+i, searchDO); Future<List<String>> future = cuPool.submit(callable); ... 阅读全文
posted @ 2013-01-18 11:19
_zao123
阅读(380)
评论(0)
推荐(0)
浙公网安备 33010602011771号