简体   繁体   English

使用阿姆达尔定律加快执行时间

[英]Speedup in execution time using Amdahl's law

I have been given this problem in one of my assignments. 我的一项任务给了我这个问题。 I understand the principles of the process of speedup, execution time etc.. However, I feel that this question is incomplete. 我了解加速,执行时间等过程的原理。但是,我觉得这个问题并不完整。 Is it true or can it be solved? 是真的还是可以解决? If so can you please explain. 如果可以,请您解释一下。

A program executes on the original version of a machine that runs at a 2GHz clock rate. 程序在以2GHz时钟频率运行的计算机的原始版本上执行。 The program takes 450 micro-seconds of CPU time. 该程序需要450微秒的CPU时间。 An improvement is made to the machine that affects 80% of the code in the program. 对计算机的改进影响了程序中80%的代码。 Based on Amdahl's law, this improvement would yield an N% speedup in the execution time for the program. 根据阿姆达尔定律,此改进将使程序的执行时间加快N%。 What value is N? N是多少? Express your answer to two decimal places. 将答案表达到小数点后两位。

If you have been given this question as an assignment, you must have classmates that you can communicate with and develop an answer with. 如果您以作业的形式回答了这个问题,则必须有可以与之交流并得出答案的同学。 If you have been given this question on an exam (I am concluding that this is the case), then you are in a class that is at a higher level of computer architecture. 如果您在考试中遇到了这个问题(我想是这样的话),那么您所处的课程属于更高一级的计算机体系结构。 As such, you are lucky. 因此,您很幸运。 This is a very easy question on a not so easy subject. 对于一个不那么容易的主题,这是一个非常简单的问题。 I am constantly amazed at the number of people who slip thru the cracks and get to a level like this, unable to arrive at a solution on their own. 我不断感到惊讶的是,有很多人从裂缝中溜走,达到了这样的水平,无法独自寻求解决方案。 Please do yourself and the computer science field a favor and pursue a different career. 请给自己和计算机科学领域一个忙,并追求不同的职业。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM