Как измеряется тактовая частота и что это значит?

682
Program5284

После некоторых вики-исследований о тактовой частоте я нахожу два вопроса:

  1. Что означает цикл?

  2. Как цикл влияет на скорость обработки?

Извините за то, что я нуб .... Но очень надеюсь, что кто-то может ответить на мой вопрос, спасибо

3
Пожалуйста, укажите "Wiki", который вы прочитали. Hannu 8 лет назад 0
В ЦП есть (по крайней мере, теоретически) «главный генератор», который обеспечивает основные сигналы синхронизации для запуска всего. Частота этих «часов» - это тактовая частота. «Цикл» - это один «тик» часов - электрически сигнал начинается в какой-то момент (может быть, ноль, может быть -3, кто знает) и перепрыгивает вверх / вниз к другому напряжению, возможно, проходит мимо начальной точки в другом направление, затем возвращается к начальной точке, чтобы сделать все это снова. Daniel R Hicks 8 лет назад 0

1 ответ на вопрос

1
DavidPostill

What does a cycle mean?

Clock is a signal used to sync things inside the computer. Take a look at Figure 2, where we show a typical clock signal: it is a square wave changing from “0” to “1” at a fixed rate. On this figure you can see three full clock cycles (“ticks”). The beginning of each cycle is when the clock signal goes from “0” to “1”; we marked this with an arrow. The clock signal is measured in a unit called Hertz (Hz), which is the number of clock cycles per second. A clock of 100 MHz means that in one second there is 100 million clock cycles.

enter image description here

In the computer, all timings are measured in terms of clock cycles.

Source Clock


How does a cycle affect the processing speed?

To think that clock and performance is the same thing is the most common misconception about processors.

If you compare two completely identical CPUs, the one running at a higher clock rate will be faster. In this case, with a higher clock rate, the time between each clock cycle will be shorter, so things are going to be performed in less time and the performance will be higher. But when you do compare two different processors, this is not necessarily true.

If you get two processors with different architectures – for example, two different manufacturers, like Intel and AMD – things inside the CPU are completely different.

As we mentioned, each instruction takes a certain number of clock cycles to be executed. Let’s say that processor “A” takes seven clock cycles to perform a given instruction, and that processor “B” takes five clock cycles to perform this same instruction. If they are running at the same clock rate, processor “B” will be faster, because it can process this instruction is less time.

For modern CPUs there is much more in the performance game, as CPUs have different number of execution units, different cache sizes, different ways of transferring data inside the CPU, different ways of processing the instructions inside the execution units, different clock rates with the outside world, etc.

Source Clock


Further reading

Похожие вопросы