- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
循等待可能只有一片程式也可能由好片程式合起成考有很多份上述程式同在行考黑板上著教室有人由人更新捧蔡文能已倒掉史丹弗大已正式被美商甲古文公司有版芬大二生四大自由同有多程式核心微核心全核心插向量若提供真正的不出依照定等於也就是倒硬有注意必是在同一存才叫似大靴的硬有分割用成狗木端同走到中互不相不明的不清楚的因法像
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * The Critical Section Problem n processes all competing to use some shared data Each process has a code segment, called critical section (CS), in which the shared data is accessed. Problem – ensure that when one process is executing in its critical section, no other process is allowed to execute in its critical section Even with multiple CPUs Each process must request the permission to enter its CS The critical section problem is to design a protocol that the processes can use so that their action will not depend on the order in which their execution is interleaved (possibly on many processors) Semaphore, Monitor : provided by OS Test-and-Set instruction : Hardware /wiki/Critical_section Semaphore Synchronization tool (provided by the OS) that does not require busy waiting Formally, a semaphore is comprised of: An integer variable: value Two atomic operations: P( ) and V( ) P( ) also known as wait( ) While value = 0, sleepDecrement value and return V( ) also known as signal( ) Increments valueIf there are any threads sleeping waiting for value to become non-zero, wakeup at least 1 thread /wiki/Semaphore_(programming) Java: notify( ) notifyAll( ) /wiki/Producers-consumers_problem Monitors A monitor is a set of programmer-defined operations that are provided mutual exclusion within the monitor (the monitor construct prohibits concurrent access to all procedures defined within the monitor) Type of condition: x.wait and x.signal Signal-and-Wait: P=wait Q to leave the monitor or another condition Signal-and-Continue: Q=wait P to leave the monitor or other condition P x.signal Q(suspended) associated with condition x resume Java uses Monitors for Mutual Exclusion: wait( ), notify( ), notifyAll( ) A Monitor is essentially a class with private methods, plus a queue. /wiki/Operating_System_Des
您可能关注的文档
- -东莞清洁生产科技中心.ppt
- 2010年第十届中国西部国际装备制造业博览会.doc
- 2012年全技工教育参评组别B.doc
- 2014年成人大专招生简章-茂名职业技术学院.doc
- 2015年集美大学级大学生创新创业训练计划项目一览表.doc
- 2016年会计院级重点专业课程资源-四川交通职业技术学院.doc
- 2016年高考化学二三轮复习无机综合试题特点及应试策略.ppt
- 2017年中考数学知识点系列专题图形的旋转.doc
- 2019农业装备领域科技成果项目征集表-中国农业机械学会.doc
- 2019年海峡两岸汽车零配件展览会.doc
- 初中英语人教版七年级上册第四单元Where is my schoolbag ! Section A .ppt
- 初中英语人教版七年级上册第四单元Where is my schoolbag Section B 2.ppt
- 初中英语人教版七年级下册 Unit 6 I'm watching TV. Section A 11a.pptx
- 注册土木工程师培训课件.ppt
- 初中生物济南版七年级上册第一章奇妙的生命现象 第三节生物学的探究方法.ppt
- 初中英语人教版七年级上册第四单元Where is my schoolbag Section B 2.pptx
- 注册安全工程师案例课件.ppt
- 初中物理人教版八年级上册第二章第4节噪声的危害和控制课件(共19张PPT).pptx
- 注册安全工程师王阳课件.ppt
- 初中数学青岛版八年级上2.4《线段的垂直平分线》课件(16张PPT).ppt
最近下载
- 灵芝孢子油的作用.pptx VIP
- ERP SAP系统及实施介绍 OverView.ppt VIP
- 四年级奥数精讲精练(含解析).pdf VIP
- 安徽2024届高三第四次模拟考试化学试题附参考答案(解析).pdf VIP
- 辅件喷嘴-固瑞克喷涂机.pdf VIP
- 金属加工软件:HyperMILL二次开发all.docx VIP
- 制造业采购部年终总结分析.pptx VIP
- 2026届黑龙江省(优才计划中学生标准学术能力测试)高三数学联考试题【附解析】.pdf
- 统编版七年级道德与法治上册第三单元《珍爱我们的生命》测试题(含答案).docx VIP
- 经皮冠状动脉介入治疗指南(2025)解读(2).pptx
原创力文档


文档评论(0)