what does a cpu cycle mean?
closed as unclear what you're asking by slhck Jul 11 '13 at 14:11
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.
A cycle generally refers to a clock cycle (a single tick of the internal clock.) Cycles per second are also called Hertz, or Hz, thus a 2 GHz CPU (two gigahertz) goes through 2,000,000,000 cycles every second.
Some instructions on a CPU take multiple cycles to execute, and optimization means in most cases multiple instructions are executed in a single cycle... Thus the number of instructions executed in a given cycle is variable, but the number of CPU cycles any given instruction takes is usually fixed.
In the world of X86-type CPUs (and many others), the running of the processor is controlled by a timing clock to synchronise what's happening with other parts of the system (RAM, ROM etc.) and this determines the overall speed of the CPU, but the things that the processor can do also go through a number of specific 'states' - called timing states, or 'T states'. Most CPUs run through around 3-6 T states in one cycle - for example, the classic Intel model is:
Each T state takes a certain number of clock periods to complete and can vary - for example, if your computer is fitted with (relatively) slow RAM, the memory read/write T states will be extended with additional 'wait states' to allow time for the CPU to issue a memory read instruction, for the instruction to be received by the memory controller, the required memory location addressed and the required data from that memory to appear on the memory bus for reading my the CPU.
Eg: MEMR - W - W - W - MEMW - IOR - IOW (3 wait states)
Running through all those operations is known as a machine cycle
Obviously, at some point in the cycle, the CPU is also busy doing some processing and adding this amount of time to the machine cycle give you a period of time known as the instruction cycle
Clever things can happen to skip unwanted states (like DMA and streaming instructions), but in simple terms, the time taken to complete one operation of the CPU (running through the required T and processing states) is known as a 'cycle'.