文件名称:ReaderWriter
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 6kb
- 下载次数:
- 0次
- 提 供 者:
- Jo***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
Java多线程读者写者程序。程序先从txt文本中读取读者写者信息,1 R 3 5为例,1为线程序号,R表示读者,3表示申请操作的时间(秒为单位),5表示操作持续的时间。运行后先选择读者/写者优先,之后按照文本中的描述建立线程,采用信号量机制处理互斥访问。-Readers who write multi-threaded Java programs. Txt program text reads the reader to start writing Information, 1 R 3 5, for example, a number of threads, R for the reader, 3 that the applicant operating time (seconds), 5 that the duration of operation. After the first choice to run the reader/writer first, followed by the text of the descr iption of the establishment of the thread, the use of mechanisms to deal exclusive access semaphore.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ReaderWriter\Input.txt
............\line.class
............\My.class
............\ReaderWriter.class
............\ReaderWriter.java
............\ReaderWriter.java.bak
ReaderWriter
............\line.class
............\My.class
............\ReaderWriter.class
............\ReaderWriter.java
............\ReaderWriter.java.bak
ReaderWriter