首页 操作系统 WindowsServer     /    采用“写优先”的策略演示“读者-写者”问题

采用“写优先”的策略演示“读者-写者”问题

上传者: tlqfreedom | 上传时间:2023/2/4 20:21:15 | 文件大小:304KB | 文件类型:zip
采用“写优先”的策略演示“读者-写者”问题
选题十五:采用“写优先”的策略演示“读者-写者”问题1、设计目的:通过研究经典的进程进步问题,实现对读者-写者问题的并发控制。
2、说明:阅览室一次最多可以容纳20个人。
3、设计要求:读者与写者至少包括ID、进入内存时间、读写时间三项内容,可在界面上进行输入读者与写者均有二个以上,可在程序运行期间动态增加读者与写者可读取样例数据(要求存放在外部文件中),进行读者/写者、进入内存时间、读写时间的初始化要求将运行过程用可视化界面动态显示,可随时暂停,查看阅览室中读者/写者数目、读者等待队列、写者等待队列、读写时间、等待时间读写策略为:读写互斥、写写互斥、写优先(只需写者到达,就阻塞后续的所有读者,一旦阅览室无人,写者能最快进入阅览室;
在写者未出阅读室之前,又有新的读者与写者到达,仍然是写者排在前面 本软件ID:5771003

文件下载

资源详情

[{"title":"(29个子文件304KB)采用“写优先”的策略演示“读者-写者”问题","children":[{"title":"操作系统课程设计","children":[{"title":"题目.txt <span style='color:#111;'>777B</span>","children":null,"spread":false},{"title":"201007195滕林强_OS_课设.doc <span style='color:#111;'>6.66MB</span>","children":null,"spread":false},{"title":"源代码","children":[{"title":"duzhexiezhe","children":[{"title":"duzhexiezhe.suo <span style='color:#111;'>26.50KB</span>","children":null,"spread":false},{"title":"duzhexiezhe","children":[{"title":"bin","children":[{"title":"Debug","children":[{"title":"duzhexiezhe.pdb <span style='color:#111;'>33.50KB</span>","children":null,"spread":false},{"title":"duzhexiezhe.vshost.exe <span style='color:#111;'>11.33KB</span>","children":null,"spread":false},{"title":"duzhexiezhe.vshost.exe.manifest <span style='color:#111;'>490B</span>","children":null,"spread":false},{"title":"duzhexiezhe.exe <span style='color:#111;'>17.50KB</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Form1.Designer.cs <span style='color:#111;'>16.57KB</span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'>492B</span>","children":null,"spread":false},{"title":"duzhexiezhe.csproj <span style='color:#111;'>3.66KB</span>","children":null,"spread":false},{"title":"obj","children":[{"title":"x86","children":[{"title":"Debug","children":[{"title":"duzhexiezhe.pdb <span style='color:#111;'>33.50KB</span>","children":null,"spread":false},{"title":"duzhexiezhe.csproj.FileListAbsolute.txt <span style='color:#111;'>2.57KB</span>","children":null,"spread":false},{"title":"duzhexiezhe.Form1.resources <span style='color:#111;'>180B</span>","children":null,"spread":false},{"title":"GenerateResource.write.1.tlog <span style='color:#111;'>2.19KB</span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'>6.06KB</span>","children":null,"spread":false},{"title":"ResolveAssemblyReference.cache <span style='color:#111;'>14.12KB</span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'>7.30KB</span>","children":null,"spread":false},{"title":"GenerateResource.read.1.tlog <span style='color:#111;'>1.32KB</span>","children":null,"spread":false},{"title":"duzhexiezhe.Properties.Resources.resources <span style='color:#111;'>180B</span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"duzhexiezhe.exe <span style='color:#111;'>17.50KB</span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"Form1.cs <span style='color:#111;'>11.53KB</span>","children":null,"spread":false},{"title":"documents","children":[{"title":"rw.txt <span style='color:#111;'>54B</span>","children":null,"spread":false}],"spread":true},{"title":"Form1.resx <span style='color:#111;'>5.68KB</span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Resources.resx <span style='color:#111;'>5.48KB</span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'>249B</span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'>1.34KB</span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'>1.07KB</span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'>2.81KB</span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"duzhexiezhe.sln <span style='color:#111;'>875B</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • jx8088:
    这个代码不错,但是是C#编程的,我想找的是C语言的,但是这个C#我可以借鉴一下来学习,还不错的代码!能运行2014-12-22
  • 吉阿:
    我的能打开,但是一运行就出现异常。。。。2014-07-03
  • shine-:
    C#实现,功能很好,可以手动添加读者写者2013-11-21

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明