文件名称:READER_WRITER
介绍说明--下载内容均来自于网络,请自行研究使用
都写者模拟程序
思路:对一个CPU时间段处理,用一个STATE标志来做互斥,对写者来说一般处理它的第一个,读者是重点出来第一个,再以读者可以重入的思想,
处理相应的后面的读者-Those who have written simulation program ideas: CPU time for a deal, with a sign to do STATE mutex for write who generally deal with it first, the reader is out of focus first, and then readers can go back to the idea of , deal with the reader behind the corresponding
思路:对一个CPU时间段处理,用一个STATE标志来做互斥,对写者来说一般处理它的第一个,读者是重点出来第一个,再以读者可以重入的思想,
处理相应的后面的读者-Those who have written simulation program ideas: CPU time for a deal, with a sign to do STATE mutex for write who generally deal with it first, the reader is out of focus first, and then readers can go back to the idea of , deal with the reader behind the corresponding
(系统自动生成,下载前可以参看下载内容)
下载文件列表
READER_WRITER.c