- 12
- 0
- 约1.63万字
- 约 72页
- 2016-04-24 发布于湖北
- 举报
* * * * * * * * * * * * * 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
- 工具之17_《招聘及面试技巧》要点详解.ppt
- 定位——特劳特要点详解.ppt
- 工控小论文要点详解.ppt
- 定位仪培训(基础理论)要点详解.ppt
- 定制橱柜培训要点详解.ppt
- 工矿企业安全管理人员培训要点详解.ppt
- 东北大学单片机第九章附加要点详解.ppt
- 工贸企业安全生产标准化基本规范评分细则__叶坚新11要点详解.ppt
- 东北大学电工学-晶闸管要点详解.ppt
- 2026年及未来5年铝合金高效除气剂项目市场数据调查、监测研究报告.docx
- 2026年及未来5年耐高温绕组线项目市场数据调查、监测研究报告.docx
- 2026年及未来5年扩孔钻头项目市场数据调查、监测研究报告.docx
- 2026年及未来5年静电电压表项目市场数据调查、监测研究报告.docx
- 2026年及未来5年小花叶项目市场数据调查、监测研究报告.docx
- 2026年及未来5年色差计项目市场数据调查、监测研究报告.docx
- 2026年及未来5年阻燃加工布项目市场数据调查、监测研究报告.docx
- 2026年及未来5年直流遥控组件项目市场数据调查、监测研究报告.docx
- 2026年及未来5年白色圆领T恤项目市场数据调查、监测研究报告.docx
- 2026年及未来5年电桥测试夹项目市场数据调查、监测研究报告.docx
最近下载
- 网约车辆火灾防控应急预案.docx VIP
- 工程施工旁站监理措施(3).docx VIP
- 2025年河北省人体解剖学(专升本)考试真题及参考答案.docx VIP
- 人民大2024产业经济学(第六版)课件第11章 产业结构政策.pptx VIP
- 河道冬雨季施工方案.docx VIP
- 电动垂直起降(eVTOL)2025年适航认证案例分析:安全性与可靠性评估.docx
- 2026部编版小学数学二年级上册期末考试卷(3套含答案解析).docx
- 公司消防安全第一责任人职责模板范本.docx VIP
- 为自己点赞主题班会课件.pptx VIP
- 精品解析:2024年山东省淄博市张店区中考一模数学模拟试题(原卷版).docx VIP
原创力文档

文档评论(0)