• 大小: 371KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-06
  • 语言: C#
  • 标签: C#  生产者  消费者  

资源简介

C#实现生产者与消费者关系 1.可使用TrackBar控制生产者或消费者的速度 2.使用线程来控制生产者生产和消费者消费 3.当资源为0时,暂停消费,直到库存有资源 4.使用图片的位置来判断资源是否增长或减少

资源截图

代码片段和文件信息

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-12-27 11:45  ProducersAndConsumers\
     目录           0  2017-12-29 17:42  ProducersAndConsumers\ProducersAndConsumers\
     文件        1032  2017-10-26 15:01  ProducersAndConsumers\ProducersAndConsumers.sln
     文件       41984  2017-12-29 17:44  ProducersAndConsumers\ProducersAndConsumers.v12.suo
     文件         187  2017-10-26 15:01  ProducersAndConsumers\ProducersAndConsumers\App.config
     目录           0  2017-12-27 11:45  ProducersAndConsumers\ProducersAndConsumers\bin\
     目录           0  2017-12-27 11:45  ProducersAndConsumers\ProducersAndConsumers\bin\Debug\
     文件       93696  2017-12-29 17:42  ProducersAndConsumers\ProducersAndConsumers\bin\Debug\ProducersAndConsumers.exe
     文件         187  2017-10-26 15:01  ProducersAndConsumers\ProducersAndConsumers\bin\Debug\ProducersAndConsumers.exe.config
     文件       46592  2017-12-29 17:42  ProducersAndConsumers\ProducersAndConsumers\bin\Debug\ProducersAndConsumers.pdb
     文件       24224  2017-12-29 17:42  ProducersAndConsumers\ProducersAndConsumers\bin\Debug\ProducersAndConsumers.vshost.exe
     文件         187  2017-10-26 15:01  ProducersAndConsumers\ProducersAndConsumers\bin\Debug\ProducersAndConsumers.vshost.exe.config
     文件         490  2015-10-30 15:19  ProducersAndConsumers\ProducersAndConsumers\bin\Debug\ProducersAndConsumers.vshost.exe.manifest
     目录           0  2017-11-18 21:48  ProducersAndConsumers\ProducersAndConsumers\bin\Release\
     文件        6241  2017-12-29 17:42  ProducersAndConsumers\ProducersAndConsumers\Form1.cs
     文件       12539  2017-12-29 17:41  ProducersAndConsumers\ProducersAndConsumers\Form1.Designer.cs
     文件      124544  2017-12-29 17:41  ProducersAndConsumers\ProducersAndConsumers\Form1.resx
     目录           0  2017-12-27 11:45  ProducersAndConsumers\ProducersAndConsumers\obj\
     目录           0  2017-12-29 17:42  ProducersAndConsumers\ProducersAndConsumers\obj\Debug\
     文件        1453  2017-10-26 15:48  ProducersAndConsumers\ProducersAndConsumers\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        7148  2017-12-29 17:30  ProducersAndConsumers\ProducersAndConsumers\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件        3852  2017-12-29 17:42  ProducersAndConsumers\ProducersAndConsumers\obj\Debug\ProducersAndConsumers.csproj.FileListAbsolute.txt
     文件         977  2017-12-29 17:42  ProducersAndConsumers\ProducersAndConsumers\obj\Debug\ProducersAndConsumers.csproj.GenerateResource.Cache
     文件        2211  2017-10-26 15:52  ProducersAndConsumers\ProducersAndConsumers\obj\Debug\ProducersAndConsumers.csprojResolveAssemblyReference.cache
     文件       93696  2017-12-29 17:42  ProducersAndConsumers\ProducersAndConsumers\obj\Debug\ProducersAndConsumers.exe
     文件       79604  2017-12-29 17:42  ProducersAndConsumers\ProducersAndConsumers\obj\Debug\ProducersAndConsumers.Form1.resources
     文件       46592  2017-12-29 17:42  ProducersAndConsumers\ProducersAndConsumers\obj\Debug\ProducersAndConsumers.pdb
     文件         180  2017-12-27 11:41  ProducersAndConsumers\ProducersAndConsumers\obj\Debug\ProducersAndConsumers.Properties.Resources.resources
     文件           0  2017-10-26 15:01  ProducersAndConsumers\ProducersAndConsumers\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
     文件           0  2017-10-26 15:01  ProducersAndConsumers\ProducersAndConsumers\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
     文件           0  2017-10-26 15:01  ProducersAndConsumers\ProducersAndConsumers\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
............此处省略10个文件信息

评论

共有 条评论