- 7
- 0
- 约1.39万字
- 约 63页
- 2018-03-06 发布于江西
- 举报
分布式系统英文教案chap-05_zy
A Centralized Algorithm Process 1 asks the coordinator for permission to enter a critical region. Permission is granted Process 2 then asks permission to enter the same critical region. The coordinator does not reply. When process 1 exits the critical region, it tells the coordinator, when then replies to 2 A Centralized Algorithm Problems: If the coordinator is dead, the entire system may go down. If processes normally block after making a request, there is no way to distinguish a dead coordinator from “permission denied”. A possible bottleneck. A Distributed Algorithm Description When a process wants to enter a critical region, it builds a message to all others including its timestamp When a process receives a request, If it is not currently in the CR and does not want to enter it, it sends “OK” back. If it is already in CR, it queues the request If it is preparing to enter the CR, it compares the timestamp with its own, the lower one wins. It sends “OK” or queues the request. A Distributed Algorithm Description When “OK”s come from all processes, the process can enter the CR. When a process exits the CR, it sends the “OK” to all processes on its queue and deletes them all from the queue. A Distributed Algorithm Two processes want to enter the same critical region at the same moment. Process 0 has the lowest timestamp, so it wins. When process 0 is done, it sends an OK also, so 2 can now enter the critical region. A Distributed Algorithm Problems The number of messages required per entry is now 2(n-1), where n is the # of processes. The single point of failure has been replaced by n points of failure. All processes are involved in all decisions concerning entry into the CR, still bottleneck. A receiver always sends a message back, either granting or denying the permission. A process is allowed to enter a CR when it gets permission from the majority. Each process can only grant one permission at a time. A Toke Ring Algorithm Description A logical rin
您可能关注的文档
- 八年级语文下册 第32课《壶口瀑布》课件1 上海五四制版.ppt
- 公共财政学9公共支出与结构1.ppt
- 公关礼仪文书P66---开元国际酒店.ppt
- 公共经济学—第2章:政府的经济活动和作用.ppt
- 公司业务培训课件(刘欢).ppt
- 公司战略规划02版检讨高层确认spc.ppt
- 公司内部培训资料(PPT文档)(稀有资料).ppt
- 公司治理专题(研究生课程内容).ppt
- 公共艺术课程教学工作评估报告(顿号版).ppt
- 公司整体信息安全风险评估及工作情况汇报1.ppt
- 广东省广州省实验中学教育集团2025-2026学年八年级上学期期中考试物理试题(解析版).docx
- 广东省广州大学附属中学2025-2026学年八年级上学期奥班期中物理试题(解析版).docx
- 广东省广州市第八十六中学2025-2026学年八年级上学期期中物理试题(含答案).docx
- 广东省广州市第八十九中学2025-2026学年八年级上学期期中考试物理试题(解析版).docx
- 广东省广州市第二中学2025-2026学年八年级上学期期中考试物理试题(含答案).docx
- 广东省广州市第八十六中学2025-2026学年八年级上学期期中物理试题(解析版).docx
- 广东省广州市第八十九中学2025-2026学年八年级上学期期中考试物理试题(含答案).docx
- 广东省广州市第二中学2025-2026学年八年级上学期期中考试物理试题(解析版).docx
- 2026《中国人寿上海分公司营销员培训体系优化研究》18000字.docx
- 《生物探究性实验教学》中小学教师资格模拟试题.docx
最近下载
- 广东省广州市某中学2024-2025学年九年级下学期开学考试化学试卷.pdf VIP
- 2024年江苏大学附属医院招聘真题.docx VIP
- 直播电商模式下抖音消费者冲动购买行为影响因素研究(3).docx VIP
- 湖北省学位英语考试真题2023.pdf VIP
- 2026届高考语文复习:55分与45分作文,其精妙分野,究竟在何方?——以“活人感”与“敬自己”作文为例.pptx
- 2023年江苏大学附属医院医护人员招聘考试模拟试题及答案解析.docx VIP
- 2025年货代年终总结及明年计划.pdf VIP
- 2025-2030日本便利店业态创新方向与中国本土化改造案例报告.docx
- 高考必备单词三千五电子版.pdf VIP
- 2026安全生产第一课78张.pptx
原创力文档

文档评论(0)