Skip to content

Commit

Permalink
Merge pull request #24 from xuyushi/master
Browse files Browse the repository at this point in the history
程序循环层级错误
  • Loading branch information
francistao authored Aug 15, 2016
2 parents 02b07f6 + 610767b commit da27320
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Part2/JavaConcurrent/生产者和消费者问题.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ public class PublicResource {
// TODO Auto-generated catch block
e.printStackTrace();
}
number++;
System.out.println("生产了1个,总共有" + number);
notifyAll();
}
number++;
System.out.println("生产了1个,总共有" + number);
notifyAll();
}
Expand Down

0 comments on commit da27320

Please sign in to comment.