阅读背景:

如何在Java中使用等待和通知?

来源:互联网 

I have 2 matrices and I need to multiply them and then print the results of each cell. As soon as one cell is ready I need to print it, but for example I need to print the [0][0] cell before cell [2][0] even if the result of [2][0] is ready first. So I need to print it by order. So my idea is to make the printer thread wait until the I have 2 matrices and I need to multiply them a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: