文件名称:ProducerConsumer
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- Al***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
采用Java 多线程技术,设计实现一个符合生产者和消费者问题的程序。对一个对象(枪膛)进行操作,其最大容量是12颗子弹。生产者线程是一个压入线程,它不断向枪膛中压入子弹;消费者线程是一个射出线程,它不断从枪膛中射出子弹-Use of Java multi-threading technology, designed to achieve a consistent producer and consumer issues programs. Pairs of an object (the chamber) to operate with a maximum capacity of 12 bullets. The producer thread is pressed into a thread, it continues to press into the bullet in the chamber consumer thread is a thread injection, it continues to bullets fired from the barrel of
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ProducerConsumer.java