拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
Try to modify it and use java.util.concurrent.CompletionService
Production->Consumption->Production->Consumption....
Such a request why Mao needs to open a thread
消费者全部消费完数据之后,再执行for循环的第二次循环, then what’s the point of starting a thread? , just execute it synchronously
消费者全部消费完数据之后,再执行for循环的第二次循环
Try to modify it and use java.util.concurrent.CompletionService
Production->Consumption->Production->Consumption....
Such a request why Mao needs to open a thread
消费者全部消费完数据之后,再执行for循环的第二次循环
, then what’s the point of starting a thread? , just execute it synchronously