I am having a web application with Struts2 framework. I have a class which has a number of methods, out of which one is
private void callMethod()
{
setUnreadReceiptCount(wrapper.getWorkFlowCount(us, "unread", "receipt",Constants.Open));
setWorklistFilesCount(wrapper.getWorkFlowCount(us, "unread", "file","worklist"));
mp=wrapper.getFileWorklist(us,stat,"","","",Constants.FilterbyFileReceivedDate,Constants.sortOrderDsc,next,10);
}
I want that all the three calls inside the method should be done using three different threads . Please explain how to do so.
您可能只是想剥离Java中的三个线程来执行此操作。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.