Producter.java
生产者:
1 | /** |
Consumer.java
1 | public class Consumer extends Thread { |
main.java
:
1 | public static void main(String args[]){ |
Producter.java
生产者:
1 | /** |
Consumer.java
1 | public class Consumer extends Thread { |
main.java
:
1 | public static void main(String args[]){ |