- 6
- 0
- 约 72页
- 2017-05-08 发布于湖北
- 举报
多核程序设计之三研讨
* * * * * * * * * * * * * Multi-core Programming: Basic Concepts Speaker’s Notes [Purpose of this Slide] Show how speedup is computed in fence painting example for various numbers of painters. [Details] The fence graphic along the right edge will be automatically put in after 5 seconds. Infinite painters is the theoretical maximum and means that the time to paint the fence can be as close to zero as desired. Build shows box relating discussion to Amdahl’s law. The use of a spray gun introduces a better serial algorithm. Future speedup calculations must then use this serial algorithm timing (since no one would go back to an inferior serial algorithm when given the chance to use something better). The new serial time with the spray gun is then 120 minutes (30 + 60 + 30) with the same serial setup and cleanup time. The assumption in the example is that the spray gun cannot be used if there are more than one painter, thus, there is no advantage from the spray gun in the parallel case. The theoretical maximum speed up, in light of the spray gun, is 2.0X with an infinite number of painters (120 / 60 = 2.0). * Multi-core Programming: Basic Concepts Speaker’s Notes [Purpose of this Slide] Define and show how to compute the Efficiency metric for parallel processors (threads). [Details] Efficiency is a measure of how busy the threads are during parallel computations. Low efficiency numbers may prompt the user to run the application on fewer threads/processors and free up resources to run something else (another threaded process, other user’s codes). Build transforms some potential workers into lay-abouts enjoying not having to do much work, but still getting paid for the whole time that the job is being conducted (all the serial time for set up and cleaning). * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 锁的粒度 锁的粒度 锁的粒度是上锁后保护的共享数据的多少,当一个线程加锁并访问这些数据期间,其它线程无法访问。 减小锁的粒度可以提高对共享数据访问的并行性,可以更加充分利用并行处理能力。例如:对树的访问 * 锁的粒度 * 锁的粒度和死锁 死锁 两个线程分别拥有锁,并等待
您可能关注的文档
- 基于单片机的摇摇棒设计研讨.ppt
- 基于单片机的数字温度计的设计研讨.ppt
- 基于单片机的旋转显示系统研讨.ppt
- 基于单片机的智能风扇的设计研讨.ppt
- 基于单片机的正弦波逆变电源设计答辩研讨.ppt
- 基于单片机的电子密码锁的设计答辩研讨.ppt
- 基于单片机的电梯控制系统的设计与实现研讨.ppt
- 基于单片机的电梯控制系统研讨.ppt
- 基于单片机的超速报警装置研讨.ppt
- 基于单片机的节水灌溉控制系统设计研讨.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
最近下载
- 肺隔离症诊疗指南(2025年版).docx
- 2021届贵州省遵义市高三年级第一次统考物理试卷含答案.pdf VIP
- 精品解析:北京市海淀区2025-2026学年九年级上学期期末考试物理试题(解析版).docx VIP
- 2025年山西省中考数学备考全指南(知识点归纳,必考知识点、真题模拟试卷及解析).docx VIP
- 心血管疾病的风险评估与管理课件.pptx VIP
- 离婚协议书(2026官方标准版).docx VIP
- HG_T 3706-2014 工业用孔网钢骨架聚乙烯复合管.doc VIP
- 湖北省学位英语考试真题2023.pdf VIP
- 船舶焊接 垂直气电焊 垂直气电焊.ppt VIP
- 2024湖北省学位英语考试真题及答案.docx VIP
原创力文档

文档评论(0)