Professional Documents
Culture Documents
Lecture: 5, 6
دوة ﻋﻠﻰ ﮳ﺣﻬﺎز ﮲ﺎ ﻫ ﮵ ﮲running ﮳ﲁ ﮳ﺴﺎﻃﻪ اﺣ ﮲ﺎ ﻋﺎ ﮵ ﮲ﺮ ﮵ ﮲ﮟ ﮲ﻌﺮف اﻟ ﮳ﺮ ﮲ﺎﻣﺢ اﻟﻠﻰ اﺣ ﮲ﺎ ﻋﺎﻣﻠ ﮵ ﮲ﮟ ﻟ ﮵ﻪ
ﻟﺬﻟﻚexecution time ﺎﺣﺪ اد ا ﮵ﻪ
cpu ﺎﺣﺪ م
﮳ ﮵ ﮲instruction ﺎﺣ ﮵ ﮲ﮟ ﮲ﻌﺮف ﰻ وﻣﺤ ﮳instruction ﺎﺣ ﮵ﮟ ﻌﺮف اﻟ ﮳ﺮ ﺎﻣﺢ ﮲ ﮵ﻪ م
﮲ ﮲ ﮲
اﺣ ﺎ ﻟﻮ ﮲ ﻜﺮ ﺎ ﻫ ﻼ ﮴ ﻰ اﻻ ﻰ ﻣﺤ ﮳
﮴ ﮴ ﮴ ﮲ ﮲ ﮲
: ﻟﺬﻟﻚ ﮲ ﮴ ﺪر ﮲ ﮲ﺼﻊ ﻫﺬا اﻟ ﮴ ﺎ ﮲ﻮنcpu cycle time والcycle
CPU execution time for a program = CPU clock cycles for a program * Clock cycle time
1
Clock cycle time =
Clock Rate
﮳ ﮴ ﮲cpu cycle
ﻫ ﮲ﺎ اﺣ ﮲ﺎ ﮳ ﮲ﺤﺴﺐ ﰻinstruction ﺎﺣﺪ م
Instruction_Count * CPI
∴ CPU execution time for a program =
Clock Rate
Boso 3al el Examples deh: chapter 1 page 32, 34, 35
Fallacies: ﺎﻃﻰ
اﻋ ﮴ ﮴ ﺎد ﮲ﺣ ﮵
Amadahl law: the performance enhancement possible with a given improvement is limited by the
amount that the improved feature is used.
EX: Suppose a program runs in 100 seconds on a computer, with multiply operations responsible for
80 seconds of this time. How much do I have to improve the speed of multiplication if I want my
program five times faster?
Amount of improvement?
Solution:
80
0=
Amount of improvement
∴Amount of improvement = ∞