Computer architecture: Difference between revisions

Content deleted Content added
mNo edit summary
spelling corrections
Line 19:
Computer retailers describe the performance of their machines in terms of clock speed (usually in MHz or GHz). This refers to the cycles per second of the main clock of the CPU. However, this metric is somewhat misleading, as a machine with a higher clock rate may not necessarily have higher performance. Most modern CPUs are capable of [[superscalar|executing multiple instructions per clock cycle]], which can dramaticallly speed-up a program. Other factors aid speed, such as the mix of [[functional unit]]s, [[computer bus|bus]] speeds, available memory, and the type and order of instructions in the programs being run.
 
Better metrics can be obtained by [[benchmark]]ing, which attempts to take all these factors into account by measuring the time the system takes to run through a series of provided programs. This can be used to obtain an average throughput for the system. Even still, benchmarking may not show that one of two systems is clearly better, since one system may, for example, be optomized to handle scientific applications, and another may be optomizedoptimized to play popular video games.
 
Another important performance consideratinconsideration is [[interrupt latency]], which is the guaranteed maximum response time of the system to an event such as the click of a mouse or the reception of data by a modem. This number is also affected by a very wide range of design choices. Computers that control machinery usually need low interrupt latencies, because the machine can't, won't or should not wait. For example, computer-controlled anti-lock brakes should not wait for the computer to finish what it's doing - they should brake.
 
The general scheme of optimization is to budget the different parts of the computer system seperately. In a balanced computer system, the data rate will be constant for all parts of the system, and cost will be allocated proportionally to assure this. The exact form of the computer system will depend on the constraints and goals it was optimized for.